diff --git a/src/app/lookup-by-id/lookup-by-id-routes.ts b/src/app/lookup-by-id/lookup-by-id-routes.ts index 8f2135def0..ed5d97781d 100644 --- a/src/app/lookup-by-id/lookup-by-id-routes.ts +++ b/src/app/lookup-by-id/lookup-by-id-routes.ts @@ -3,6 +3,7 @@ import { UrlSegment, } from '@angular/router'; +import { DsoRedirectService } from '../core/data/dso-redirect.service'; import { isNotEmpty } from '../shared/empty.util'; import { LookupGuard } from './lookup-guard'; import { ThemedObjectNotFoundComponent } from './objectnotfound/themed-objectnotfound.component'; @@ -12,6 +13,7 @@ export const ROUTES: Route[] = [ matcher: urlMatcher, providers: [ LookupGuard, + DsoRedirectService, ], canActivate: [LookupGuard], component: ThemedObjectNotFoundComponent, diff --git a/src/app/lookup-by-id/lookup-by-id.module.ts b/src/app/lookup-by-id/lookup-by-id.module.ts deleted file mode 100644 index df1d76abf4..0000000000 --- a/src/app/lookup-by-id/lookup-by-id.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { NgModule } from '@angular/core'; - -import { DsoRedirectService } from '../core/data/dso-redirect.service'; -import { ObjectNotFoundComponent } from './objectnotfound/objectnotfound.component'; -import { ThemedObjectNotFoundComponent } from './objectnotfound/themed-objectnotfound.component'; - -@NgModule({ - imports: [ - CommonModule, - ObjectNotFoundComponent, - ThemedObjectNotFoundComponent, - ], - providers: [ - DsoRedirectService, - ], -}) -export class LookupIdModule { - -}