Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3131

protocol relative URL erroneously prefixed with current context path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.2
    • 8.0.1
    • None
    • None
    • ZK 8.0.2 S1

      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

            christopherszu christopherszu
            christopherszu 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