【发布时间】:2020-09-10 07:32:28
【问题描述】:
我使用 localize-router 模块进行本地化,在重新加载后路由本地化工作正常(http://localhost:4200/en)后重定向到未找到的页面这是我的应用程序路由
const appRoutes: Routes = [
{path: '', canActivate: [AuthGuard], loadChildren: './com/wedoapps/views/main/main.module#MainModule',
data: {
metafrenzy: {
title: '',
tags: [
{
name: 'og:title',
content: ''
}, {
name: 'og:description',
content: ''
}, {
name: 'og:image',
content: ''
}
],
links: [
{
rel: 'canonical',
href: 'http://localhost/'
}
]
}
}},
{
path: '**',
redirectTo: 'not-found',
pathMatch: 'full'
}
];
【问题讨论】: