[
https://issues.apache.org/jira/browse/WICKET-4030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Vaynberg resolved WICKET-4030.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.5.1
resourcereference urls should be filter relative. raw urls given by the user
should be context-relative.
the patch was bad because it made all urls context-relative - which broke
resource refrence urls.
headerresponse already had a relative() function which shouldve taken care of
the conversion but was probably not rewritten correctly when we switched it to
use url renderer.
fixed, thanks for reporting.
> HeaderResponse.renderCSSReference does not render context path relative url,
> but wicket filter url-pattern relative url
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: WICKET-4030
> URL: https://issues.apache.org/jira/browse/WICKET-4030
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5-RC7
> Reporter: Matteo Sotil
> Assignee: Igor Vaynberg
> Priority: Minor
> Fix For: 1.5.1
>
> Attachments: quickstart.zip, relative-url.patch
>
>
> In an application with a wicket filter url-pattern different than /*, if you
> use HeaderResponse.renderCSSReference(String url), where url is a
> context-path-relative url (css/main.css, for example), the generated css link
> is not context relative, but wicket url-pattern relative.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira