You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/12/05 11:22:58 UTC

[jira] [Comment Edited] (WICKET-4903) relativeUrl's begins with ./

    [ https://issues.apache.org/jira/browse/WICKET-4903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510404#comment-13510404 ] 

Martin Grigorov edited comment on WICKET-4903 at 12/5/12 10:22 AM:
-------------------------------------------------------------------

Please give more details in the initial report. I spend my time debugging what is the use case.

Since you rewrite the url then I think you can use absolute urls like CDN ones - http://my.special.cdn.url/js/myjs.js. mod_rewrite can transform this to whatever you actually need.
That is TestResourceReference should use UrlResourceReference dependencies with fully qualified urls like the one above.
                
      was (Author: mgrigorov):
    Please give more details in the initial report. I spend my time debugging what is the use case.

Since you rewrite the url then I think you can use absolute urls like CDN ones - http://my.special.cdn.url/js/myjs.js. mod_rewite can transform this to whatever you actually need.
That is TestResourceReference should use UrlResourceReference dependencies with fully qualified urls like the one above.
                  
> 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: 4903.tgz, 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