[
https://issues.apache.org/jira/browse/WICKET-4903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509750#comment-13509750
]
Sven Meier commented on WICKET-4903:
------------------------------------
Maybe the following line in your code is the cause of a misunderstanding:
response.render(JavaScriptUrlReferenceHeaderItem.forReference(TestResourceReference.get()));
You're calling the static method *JavaScriptHeaderItem*#forReference(),
probably thinking that this will generate an absolute Url as
JavaScriptUrlReferenceHeaderItem's javadoc promises. But all this does is
creating a JavaScriptReferenceHeaderItem, which uses a relative Url (as almost
anything in Wicket).
> relativeUrl's begins with ./
> ----------------------------
>
> Key: WICKET-4903
> URL: https://issues.apache.org/jira/browse/WICKET-4903
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 6.1.0
> Reporter: Ann Baert
> Attachments: TestRelativeUrls.zip
>
>
> In method renderRelativeUrl in UrlRenderer the check url.isAbsolute() is
> removed. For wich reason is this removed? Because now our relativeurls link
> /js/name.js are rendered ./js/name.js
> How can I fix this?
> The url is made by Url.parse("/js/name.js").
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira