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.
If you are encountering the issue with angular 1.6 and further versions, this might be because AngularJS 1.6 has changed the default for hash-bang urls in the $location service.
Recently I have noticed that when using ngRoute module in an AngularJS app, the route contains #! in the URL, which was earlier just the #.
For example, www.webiste.com/#/login becomes www.website.com/#!/login but that does not work. As soon as I try to navigate to www.website.com/#!/login, the URL changes to www.website.com/#!%2Flogin.
I have to enable the
html5Mode
and also disable therequireBase
which removes the base as a whole using the code,and the URL changes to www.website.com/login which works fine but is misleading and is not what Angular SPA URLs look like.
If I do not enable the
html5Mode
, the URL is encoded and I cannot get around it. So www.website.com/#/login becomes www.website.com/#!/#%2Flogin (Notice the later / is encoded as %2F).The text was updated successfully, but these errors were encountered: