fix issue where a hard refresh wouldn't work to clear the state due to the browser caching the html

This commit is contained in:
Art Lowel
2020-04-24 13:16:52 +02:00
parent a6d7b6444c
commit c2789dfbf7
3 changed files with 22 additions and 3 deletions

View File

@@ -60,6 +60,7 @@ export function getDSOPath(dso: DSpaceObject): string {
imports: [
RouterModule.forRoot([
{ path: '', redirectTo: '/home', pathMatch: 'full' },
{ path: 'reload/:rnd', redirectTo: '/home', pathMatch: 'full' },
{ path: 'home', loadChildren: './+home-page/home-page.module#HomePageModule', data: { showBreadcrumbs: false } },
{ path: 'community-list', loadChildren: './community-list-page/community-list-page.module#CommunityListPageModule' },
{ path: 'id', loadChildren: './+lookup-by-id/lookup-by-id.module#LookupIdModule' },