diff --git a/authority-portal-frontend/src/app/app-routing.module.ts b/authority-portal-frontend/src/app/app-routing.module.ts index c81371041..7d3b0cfbb 100644 --- a/authority-portal-frontend/src/app/app-routing.module.ts +++ b/authority-portal-frontend/src/app/app-routing.module.ts @@ -99,13 +99,13 @@ const getProperRedirectUrl = (fallbackUrl: string) => { export const CATALOG_REDIRECTS: Routes = REDIRECT_TO_HOME.map((path) => ({ path, - redirectTo: getProperRedirectUrl('catalog'), + redirectTo: (() => getProperRedirectUrl('catalog'))(), pathMatch: 'full', })); export const HOME_REDIRECTS: Routes = REDIRECT_TO_HOME.map((path) => ({ path, - redirectTo: getProperRedirectUrl('home'), + redirectTo: (() => getProperRedirectUrl('home'))(), pathMatch: 'full', }));