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.
Hashbang routing - Enter site at root path ("/") #5650
Closed
Description
Angular version: 1.2.7
Browsers affected: All (?)
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.