79591513

Date: 2025-04-24 22:05:58
Score: 3
Natty:
Report link

useHash should have helped, but are you sure you actually turned it on? Do you have the problem even with hash location turned on?

Since you are using the latest Angular (v19), I suspect that you are using the standalone bootstrapping API. In this case, you need to write it in a different way using withHashLocation:

bootstrapApplication(AppComponent,
  {
    providers: [
      provideRouter(appRoutes, withHashLocation())
    ]
  }
);
Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have the
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Tortila