You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jeremy Levy (JIRA)" <ji...@apache.org> on 2013/02/08 19:29:13 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13574698#comment-13574698 ] 

Jeremy Levy commented on WICKET-4942:
-------------------------------------

This is very annoying for anyone who uses SSL on their site.  Chome and other browsers will block access to external resources if the main page is loaded over HTTPS and it attempts to load a script via HTTP.


                
> 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
>            Priority: Minor
>
> 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