#HashRoutingStrategy, parse urls without hash

3 messages · Page 1 of 1 (latest)

unkempt sequoia
#

Hey, I am using the HashRoutingStrategy, and I have an Issue, where my oauthprovider redirects to localhost:4200/oauth-callback. I need my angular app to recognize this route, and redirect to localhost:4200/#/oauth-callback. Is there any way to do this?

app.module: { provide: LocationStrategy, useClass: HashLocationStrategy },
app-routing.module:

    path: 'oauth-callback',
    component: OauthCallbackComponent
  },```
hoary anvil
#

Why re you using hash routing? Seems like you shouldn't be doing that. It's like the 2000s solution that is no longer great in 2022

unkempt sequoia