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 2013/02/27 10:47:14 UTC

[jira] [Resolved] (WICKET-4942) Double slash '//' in starting url makes Url.parse output a relative Url

     [ https://issues.apache.org/jira/browse/WICKET-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4942.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.7.0

UrlResourceReference has been improved to render its url as is. it wont be recalculated against the base url (the currently rendered page url). 
                
> Double slash '//' in starting url makes Url.parse output a relative Url
> -----------------------------------------------------------------------
>
>                 Key: WICKET-4942
>                 URL: https://issues.apache.org/jira/browse/WICKET-4942
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.4.0
>            Reporter: Serban Balamaci
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 6.7.0
>
>
> Trying to set JQuery reference to a CDN:
>         Url jqueryCDN = Url.parse("//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js");
>         getJavaScriptLibrarySettings().setJQueryReference(new UrlResourceReference(jqueryCDN));
> Url added in head results in:
> <script type="text/javascript" src=".//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

--
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