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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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>

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: