Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4942

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.4.0
    • 6.7.0
    • wicket
    • 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>

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              balamaci Serban Balamaci
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: