Skip to main content
Removed link to the url with three slashes, as that works on Safari.
Source Link
Cristik
  • 134
  • 9

Safari seems to be the only browser that differently handles URL's that have three slashes after the scheme.

For example https:///google.com getstyping https:///google.com in the address bar results in the URL being converted to https://google.com by all browsers I tried (Edge, Firefox, Opera, Tor), excepting for Safari, which converts the URL to https://localhost/google.com.

The conversion also happens when receiving a HTTP redirect (301 or 302) with a "malformed" URL, but doesn't happen when clicking on a link, in that case Safari is consistent with the other browsers.

Does somebody know why is that? And who's correct - Safari inserting localhost, or the other browsers stripping out the third slash?

Safari seems to be the only browser that differently handles URL's that have three slashes after the scheme.

For example https:///google.com gets converted to https://google.com by all browsers I tried (Edge, Firefox, Opera, Tor), excepting for Safari, which converts the URL to https://localhost/google.com.

Does somebody know why is that? And who's correct - Safari inserting localhost, or the other browsers stripping out the third slash?

Safari seems to be the only browser that differently handles URL's that have three slashes after the scheme.

For example typing https:///google.com in the address bar results in the URL being converted to https://google.com by all browsers I tried (Edge, Firefox, Opera, Tor), excepting for Safari, which converts the URL to https://localhost/google.com.

The conversion also happens when receiving a HTTP redirect (301 or 302) with a "malformed" URL, but doesn't happen when clicking on a link, in that case Safari is consistent with the other browsers.

Does somebody know why is that? And who's correct - Safari inserting localhost, or the other browsers stripping out the third slash?

Typo fix
Source Link
Cristik
  • 134
  • 9

Safari seems to be the only browser that differently handles URL's that have three slashes after the scheme.

For example https:///google.com get'sgets converted to https://google.com by all browsers I tried (Edge, Firefox, Opera, Tor), excepting for Safari, which converts the URL to https://localhost/google.com.

Does somebody know why is that? And who's correct - Safari inserting localhost, or the other browsers stripping out the third slash?

Safari seems to be the only browser that differently handles URL's that have three slashes after the scheme.

For example https:///google.com get's converted to https://google.com by all browsers I tried (Edge, Firefox, Opera, Tor), excepting for Safari, which converts the URL to https://localhost/google.com.

Does somebody know why is that? And who's correct - Safari inserting localhost, or the other browsers stripping out the third slash?

Safari seems to be the only browser that differently handles URL's that have three slashes after the scheme.

For example https:///google.com gets converted to https://google.com by all browsers I tried (Edge, Firefox, Opera, Tor), excepting for Safari, which converts the URL to https://localhost/google.com.

Does somebody know why is that? And who's correct - Safari inserting localhost, or the other browsers stripping out the third slash?

Became Hot Network Question
Source Link
Cristik
  • 134
  • 9

Safari inserts "localhost" in URLs with three slashes after the scheme

Safari seems to be the only browser that differently handles URL's that have three slashes after the scheme.

For example https:///google.com get's converted to https://google.com by all browsers I tried (Edge, Firefox, Opera, Tor), excepting for Safari, which converts the URL to https://localhost/google.com.

Does somebody know why is that? And who's correct - Safari inserting localhost, or the other browsers stripping out the third slash?