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

protocol relative URL erroneously prefixed with current context path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.1
    • Fix Version/s: 8.0.2
    • Component/s: None
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.0.2 S1

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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