[
https://issues.apache.org/jira/browse/WICKET-4138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129291#comment-13129291
]
Chris Colman commented on WICKET-4138:
--------------------------------------
If I get Wicket to handle the "/" mount path and not the separate filter then
it seems to work. Hopefully I will be able to refactor for 1.5 so that the
separate filter so that it ignores the "/" mount path and leaves it up to
Wicket to handle.
The reason the separate filter is currently handling the "/" mount path is that
the app is multi tenanted and supports many virtual hosts. It uses a URL
parameter strategy where the value is an organization ID like /o/123 to specify
the organization ID to display. An incoming request for www.abc.com is
forwarded to www.abc.com/content/home/o/123 but we should be able to determine
the org ID from the domain name and let wicket perform its natural rendering of
the page returned by getHomePage().
If this works out then this issue will no longer be an issue for us.
> BookmarkablePageLinks not working on a forwarded page
> -----------------------------------------------------
>
> Key: WICKET-4138
> URL: https://issues.apache.org/jira/browse/WICKET-4138
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.0, 1.5.1, 1.5.2
> Environment: Windows XP, Quad Core Intel, 2GB RAM
> Reporter: Chris Colman
> Attachments: ForwardingFromRoot.zip
>
>
> While migrating our app from 1.4 to 1.5 we have discovered a problem with how
> BookmarkablePageLinks are rendered.
> The attached quickstart demonstrates the problem:
> Two pages: HomePage and OtherPage mounted at: /content/home and
> /content/other respectively.
> These are mounted using the encoder UrlPathPageParametersEncoder for
> backwards compatibility with existing 1.4 style URLs.
> A filter has been established in web.xml to forward requests to root (eg.,
> localhost) to localhost/content/home
> [Note: I have left out the port :8080 part from all URL references so please
> insert when testing]
> Point browser to http://localhost and the page is forwarded to
> http://localhost/content/home and displays correctly (browser URL still shows
> http://localhost as desired) but the links do not work because they remove
> the 'content' segment of the URL:
> eg., Home link -> http://localhost/home - fails - should have been
> http://localhost/content/home
> If you type in the full URL: http://localhost/content/home
> then the home page displays and the links work correctly.
> A similar page set up works fine in 1.4.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira