This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$location.hash inserts two hash signs #13812
Closed
Description
When on the url index.html
when I set the hash at some point to, say, "foo=bar"
, the url gets two hashes in it.
So, as part of a click handler or something (doesn't really matter):
$location.hash("foo=bar");
The url becomes:
index.html##foo=bar
But we should expect:
index.html#foo=bar
This is Angular 1.4.8 on Firefox 43 on Windows 10.
Also happens in Chrome 47, IE11, and Edge 13.