[ https://issues.apache.org/jira/browse/WICKET-290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492414 ]
Andy Bel commented on WICKET-290: --------------------------------- Most of my images has not fixed urls. These are like this img.add(new AttributeModifier("src", true, new Model(imgSrc))); > Inconsistent url generation > --------------------------- > > Key: WICKET-290 > URL: https://issues.apache.org/jira/browse/WICKET-290 > Project: Wicket > Issue Type: Bug > Affects Versions: 1.2.5 > Reporter: Igor Vaynberg > Assigned To: Igor Vaynberg > Fix For: 1.2.6 > > Attachments: PageMap.java, patch.txt > > > in 1.2.5 wicket inconsistently generates urls. sometimes they are > /context/mapping/?wicket:interface, other times they are > /context/mapping?wicket:interface. this causes an inconsistency in context > path because sometimes the mapping is part of path and sometimes its not, so > it makes it harder to link to static resources in in webapp root that are > linked to mounted pages > eg > mount a page on /mapping/index.html which includes style.css > and have webapp/mapping/style.css > when you hit the mount it is /context/mapping/index.html so to the browser it > looks like style.css is in the same folder, but once you click a link the > mapping becomes > /context/mapping?wicket:interface and now style.css is in the wrong folder > because the mapping is no longer part of the path. > attached is a patch to fix this. > i am not sure if 1.3 is affected by this with its relative urls, almaw? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.