Wicket
  1. Wicket
  2. WICKET-4942

Double slash '//' in starting url makes Url.parse output a relative Url

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.4.0
    • Fix Version/s: 6.7.0
    • Component/s: wicket
    • Labels:
      None

      Description

      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>

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          64d 23h 44m 1 Martin Grigorov 27/Feb/13 09:46
          Hendy Irawan made changes -
          Link This issue blocks WICKET-5610 [ WICKET-5610 ]
          Martin Grigorov made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 6.7.0 [ 12323964 ]
          Resolution Fixed [ 1 ]
          Hide
          Martin Grigorov added a comment -

          UrlResourceReference has been improved to render its url as is. it wont be recalculated against the base url (the currently rendered page url).

          Show
          Martin Grigorov added a comment - UrlResourceReference has been improved to render its url as is. it wont be recalculated against the base url (the currently rendered page url).
          Martin Grigorov made changes -
          Field Original Value New Value
          Assignee Martin Grigorov [ mgrigorov ]
          Hide
          Jeremy Levy added a comment -

          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.

          Show
          Jeremy Levy added a comment - 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.
          Serban Balamaci created issue -

            People

            • Assignee:
              Martin Grigorov
              Reporter:
              Serban Balamaci
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development