export const routes: Routes = [
{
path: 'home',
canActivate: [AuthGuard],
loadComponent: () => Home
},
{
path: '',
canActivate: [AuthGuard],
loadComponent: () => LandingPage
},
{
path: '**',
redirectTo: 'home'
}
];
I’ve been banging my head against the wall trying to figure out why my Angular app is automatically redirecting to root after momentarily visiting the correct redirectUri upon a successful login. I don’t use loginWithRedirect method in any component, I want to show the login form automatically without calling that method.
SDK: @auth0/auth0-angular (v^2.3.0)
Angular v20.2.0
Node v22.14.0