Menu

#32 Protocol relative URLs do not work

open
nobody
5
2019-02-28
2019-02-28
No

Protocol relative URL // links do not work.

Links with protocol relative URLs, i.e. prepended with // as opposed to https:// or http:// give a "can't load //page.html" error.

Steps to reproduce:

  1. Create a file index.html accessible via http or https
  2. Create another file file2.html
  3. Add the following links in index.html:
    <a href="http://myserver.com/file2.html">link1</a>
    <a href="file2.html">link2</a>
    <a href="//myserver.com/file2.html">link3</a>
  4. select each link in turn.
  5. 1st and second link will work, third will fail with "Can't load //myserver.com/file2.html"

Discussion


Log in to post a comment.