I have Angular-12 frontend and Laravel-8 backend project for user registration confirmation with token.
From the api backend, I route into the Angular frontend this way for user activation through email:
->action('Confirm Account', url('https://myapp/auth/signup/activate?token='.$notifiable->activation_token))
But my Angular app-routing module has:
app-routing:
const routes: Routes = [
{path: '', redirectTo: 'home', pathMatch: 'full'},
{path: 'home', loadChildren: () => import('./features/landings/landings.module').then(m => m.LandingsModule)},
{path: 'auth', loadChildren: () => import('./features/auth/auth.module').then(m => m.AuthModule)},
];
auth-routing-module:
const routes: Routes = [
{path: '',
component: LoginComponent,
children: [
{
path: '',
component: AuthComponent
},
{
path: 'signup/activate',
component: SignupConfirmComponent
}
]}];
But whenever the user clicks on the notification sent to the email:
https://myapp/auth/signup/activate?token=8774945
I got this error from the frontend:
404 Not Found
What else do I need to do?