force resolvers to rerun on sub-path change

This commit is contained in:
lotte
2020-03-17 09:01:03 +01:00
parent 9d3da6fdef
commit 92c5804af5
2 changed files with 5 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ const ITEM_EDIT_PATH = 'edit';
item: ItemPageResolver,
breadcrumb: ItemBreadcrumbResolver
},
runGuardsAndResolvers: 'always',
children: [
{
path: '',

View File

@@ -67,7 +67,10 @@ export function getDSOPath(dso: DSpaceObject): string {
{ path: 'workspaceitems', loadChildren: './+workspaceitems-edit-page/workspaceitems-edit-page.module#WorkspaceitemsEditPageModule' },
{ path: 'workflowitems', loadChildren: './+workflowitems-edit-page/workflowitems-edit-page.module#WorkflowItemsEditPageModule' },
{ path: '**', pathMatch: 'full', component: PageNotFoundComponent },
])
],
{
onSameUrlNavigation: 'reload',
})
],
exports: [RouterModule],
})