I have recently upgraded to Angular2 final release. I don't think this is a duplicate because HashLocationStrategy stopped working for me after the Angular2 Final/RC7 update. Previously, refreshing the page would fetch/GET the related route with a hash (#) and reload the page. Now, I get this error on any refreshed page:
I believe this is happening because it is trying to load http://localhost:3000/main/home
instead of http://localhost:3000/#/main/home
.
Any idea why HashLocationStrategy
stopped working? Should I be importing HashLocationStrategy
in my @NgModule
?