My URLs on an AngularJS project has changed from localhost:3000/admin#/
to localhost:3000/admin#!/
since the last time I worked on my project...
Nothing found on the web, does someone know what is this ?
My URLs on an AngularJS project has changed from localhost:3000/admin#/
to localhost:3000/admin#!/
since the last time I worked on my project...
Nothing found on the web, does someone know what is this ?
Everyone is proposing to remove the prefix, but you could also simply add a
!
to client-side URLs (if not using HTML5 mode, which you probably do if you're here).So in your client-side files, update URLS like this:
#/foo/bar
>#!/foo/bar
It is new from AngularJS 1.6, which added a new hash prefix.
Source here for more information.
If you want to remove this prefix, add this code to your config:
In Angular 1.6.0, the default hashPrefix has been changed to
!
. See the related commit and the changelog entry.