You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
When using angular routing with a "/" route, an unwanted hash tag is added to the URL by angular. I cannot demonstrate this in a plunkr/jsfiddle, but if you put the page below on a server as test.html, and try to visit myserver.com/test.html, you get redirected to myserver.com/test.html#/test.html, and the page says "Hello test.html". Visiting test.html#/ works as expected and displays "Hello Dude".
Switching the link to angular 1.1.4 fixes the problem.
You're right! Did not find those for some reason. #2860 also has a more minimal example that triggers the bug just by injecting $location, while in the above example it was injected as a dependency of $routeParams.
When using angular routing with a "/" route, an unwanted hash tag is added to the URL by angular. I cannot demonstrate this in a plunkr/jsfiddle, but if you put the page below on a server as test.html, and try to visit
myserver.com/test.html
, you get redirected tomyserver.com/test.html#/test.html
, and the page says "Hello test.html". Visitingtest.html#/
works as expected and displays "Hello Dude".Switching the link to angular 1.1.4 fixes the problem.
The text was updated successfully, but these errors were encountered: