Skip to content

Commit 7e7a1f4

Browse files
FrancescoMolinaroatarix83
authored andcommitted
Merged in task/main-cris/DSC-2576 (pull request DSpace#3780)
[DSC-2576] restore redirect service on wildcard route Approved-by: Giuseppe Digilio
2 parents 4df2827 + 9118ed9 commit 7e7a1f4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/app-routes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import { ThemedPageErrorComponent } from './page-error/themed-page-error.compone
4444
import { ThemedPageInternalServerErrorComponent } from './page-internal-server-error/themed-page-internal-server-error.component';
4545
import { ThemedPageNotFoundComponent } from './pagenotfound/themed-pagenotfound.component';
4646
import { PROCESS_MODULE_PATH } from './process-page/process-page-routing.paths';
47+
import { RedirectService } from './redirect/redirect.service';
4748
import { viewTrackerResolver } from './statistics/angulartics/dspace/view-tracker.resolver';
4849
import { provideSubmissionState } from './submission/provide-submission-state';
4950
import { SUGGESTION_MODULE_PATH } from './suggestions-page/suggestions-page-routing-paths';
@@ -333,7 +334,7 @@ export const APP_ROUTES: Route[] = [
333334
.then((m) => m.ROUTES),
334335
canActivate: [authenticatedGuard],
335336
},
336-
{ path: '**', pathMatch: 'full', component: ThemedPageNotFoundComponent, data: { title: PAGE_NOT_FOUND_PATH } },
337+
{ path: '**', pathMatch: 'full', component: ThemedPageNotFoundComponent, data: { title: PAGE_NOT_FOUND_PATH }, canActivate: [RedirectService] },
337338
],
338339
},
339340
];

0 commit comments

Comments
 (0)