You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2007/04/28 02:03:15 UTC

[jira] Resolved: (WICKET-290) Inconsistent url generation

     [ https://issues.apache.org/jira/browse/WICKET-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-290.
----------------------------------

    Resolution: Fixed

> 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.