Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is IE10 removing URL hash marks on external redirect links

I have a basic link:

<a href="https://pieworld.com/apple#1/" target="_blank">Free Pie Here</a>

but when I click on it, I'm redirected to https://pieworld.com/apple

Everything after the hash mark, as well as the hash, are not included. This is only happening in IE10. I've tested without the target="_blank" as well, but the link still breaks at the hash.

Can't seem to find any documentation on this. The closest I've come to is this SO question, but it doesn't help.

Some background info that might help:

This is a .Net site

I'm redirecting from a http: to a https: site.

like image 668
itsclarke Avatar asked Jan 30 '14 17:01

itsclarke


1 Answers

According to the RFC3986 https://www.rfc-editor.org/rfc/rfc3986 it is not OK to use this format. You should remove the trailing slash. If you have a trailing slash, it points to a directory within the server. Without it, you point to a document and with the hashmark you are allowed to point to a segment of the document. See example here.

like image 170
Laszlo Varga Avatar answered Oct 03 '22 05:10

Laszlo Varga