protocol relative URL erroneously prefixed with current context path

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 8.0.2
    • Affects Version/s: 8.0.1
    • Component/s: None
    • None
    • ZK 8.0.2 S1
    • None

      When trying to use protocol relative url in the zul header, current context path will be erroneously prefixed to the url, causing the browser to throw 404 error messages in the console.

      given the following zul

      <?link href='//fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'?>
      <zk>
          <!-- other stuff here -->
      </zk>
      

      the following html is expected

      <html>
          <head>
              <link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
          </head>
      </html>
      

      but instead, i got the following

      <html>
          <head>
              <link href="/test-project//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
          </head>
      </html>
      

      causing the browser to throw the 404 not found message in the browser console

            Assignee:
            christopherszu
            Reporter:
            christopherszu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h