You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set a different language on URI, there isn't on configuration file(locales.json), my application crashes.
There routers for 404:
{path: '404', component: NotFoundComponent},
{path: '**', redirectTo: '404'}
But localize-router put this routers inside children language route.
For example:
{path: '', redirectTo: 'en', pathMatch: 'full'}
{path: 'en', children: [
{path: '404', component: NotFoundComponent},
{path: '**', redirectTo: '404'}
]}
The text was updated successfully, but these errors were encountered:
As a workaround you can add a root path redirect after the localize-router was initialized.
like this: this.router.config.push({ path: '**', redirectTo: 'en/404' });
('router' is an instance of Router)
If I set a different language on URI, there isn't on configuration file(locales.json), my application crashes.
There routers for 404:
{path: '404', component: NotFoundComponent},
{path: '**', redirectTo: '404'}
But localize-router put this routers inside children language route.
For example:
{path: '', redirectTo: 'en', pathMatch: 'full'}
{path: 'en', children: [
{path: '404', component: NotFoundComponent},
{path: '**', redirectTo: '404'}
]}
The text was updated successfully, but these errors were encountered: