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 2010/08/25 01:42:19 UTC
[jira] Resolved: (WICKET-2149) Relative path calculation goes wrong
in construction phase for a hybrid-mounted page
[ https://issues.apache.org/jira/browse/WICKET-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-2149.
-----------------------------------
Assignee: Igor Vaynberg
Resolution: Won't Fix
reopen if still valid in 1.4.x
> Relative path calculation goes wrong in construction phase for a hybrid-mounted page
> ------------------------------------------------------------------------------------
>
> Key: WICKET-2149
> URL: https://issues.apache.org/jira/browse/WICKET-2149
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.5
> Reporter: Martijn Dashorst
> Assignee: Igor Vaynberg
>
> When a page is mounted using a hybrid strategy, calculating the relative path to the context goes wrong during the construction of components because when the page is constructed during a request and then redirected to using the hybrid mounting strategy, the original calculation is off.
> For example:
> GET /app/?wicket:interface=:9:layHeader:mainmenu:mainMenuItems:1:mainMenuItem:div:link::ILinkListener::
> Gives an empty relative path to the Wicket handler, which is correct. Now if this link sets the response page to a new page instance (not a bookmarkable one), this will result in a redirect after render to:
> /app/mount/path.13
> However, the string retrieved during the construction of the page will point to ../img/foo.png instead of the correct ../../img/foo.png
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.