AngularJS and Hash Location Strategy

Hi there, I have an Angular application using Hash Location Stratgey with Hash URLs using imports: [RouterModule.forRoot(routes, { useHash: true }], so that all URLs get turned into /#/ (e.g. MainDomain). I need this, so that users can copy the URL from the browser and send it to someone else.

Unfortunately, I can’t get Auth0’s universal login does not work with Angular’s Hash Location Strategy. I looked at the older posts here. There seems to be a way to make this work, but I can’t understand how to do this. This post looks the most promising Universal login and hash-based routing in angularjs app but I can’t get the solution to work.

Please allow me to kindly ask if there is a way to use Auth0 with Angular sites that use Hash Location Strategy.

1 Like