[
https://issues.apache.org/jira/browse/WICKET-4168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135991#comment-13135991
]
Pedro Santos commented on WICKET-4168:
--------------------------------------
I don't know why ServletWebRequest#getClientUrl is testing error attributes in
request and using the error URI, it is the address of the resource causing
problems, but getClientUrl is designed to to return only the base URL without
context or filter mapping.
Simply remove the test for error attributes an its logic fix this BUG and have
no impact at WICKET-3599, WICKET-3551 but breaks some test expectations.
> Error page resource relative urls are wrong
> -------------------------------------------
>
> Key: WICKET-4168
> URL: https://issues.apache.org/jira/browse/WICKET-4168
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.2
> Reporter: Anatoly Kupriyanov
> Assignee: Pedro Santos
> Attachments: myproject.zip
>
>
> The wicket page exposed as 404 error page has wrong links to resources. The
> sample project is attached.
> Run the project with "mvn jetty:run" and go to url
> "http://localhost:8080/bug/404" - it's mapped wicket page, works perfect. But
> if you type any wrong url such as "http://localhost:8080/bug/aaaaaa" the page
> doesn't have styles and images.
--
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