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 html5Mode is false and the url is at the root (mysite.com or mysite.com/) the hash does not get added, the path and url in $location are "" when they should be "/". manually adding the hash (entering mysite.com/#/ specifically) will correct this problem, but you should not require people to enter the hash to enter the site.
What should happen is the url mysite.com or mysite.com/ should change to mysite.com/#/ as it does for deeper links.
The text was updated successfully, but these errors were encountered:
Before this change, on the root of the application, $location.path() would return
the empty string. Following this change, it will always return a root of '/'.
Closesangular#5650
Before this change, on the root of the application, $location.path() would return
the empty string. Following this change, it will always return a root of '/'.
Closesangular#5650Closesangular#5712
jamesdaily
pushed a commit
to jamesdaily/angular.js
that referenced
this issue
Jan 27, 2014
Before this change, on the root of the application, $location.path() would return
the empty string. Following this change, it will always return a root of '/'.
Closesangular#5650Closesangular#5712
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Angular version: 1.2.7
Browsers affected: All (?)
When html5Mode is false and the url is at the root (
mysite.com
ormysite.com/
) the hash does not get added, the path and url in $location are""
when they should be"/"
. manually adding the hash (enteringmysite.com/#/
specifically) will correct this problem, but you should not require people to enter the hash to enter the site.What should happen is the url
mysite.com
ormysite.com/
should change tomysite.com/#/
as it does for deeper links.The text was updated successfully, but these errors were encountered: