74053: Fix double slash in route

This commit is contained in:
Kristof De Langhe
2020-10-27 13:14:01 +01:00
parent 2d67b0b13e
commit d52da292a6

View File

@@ -181,9 +181,9 @@ export const redirectOn404Or401 = (router: Router) =>
tap((rd: RemoteData<T>) => {
if (rd.hasFailed) {
if (rd.error.statusCode === 404) {
router.navigateByUrl(`/${getPageNotFoundRoute()}`, {skipLocationChange: true});
router.navigateByUrl(getPageNotFoundRoute(), {skipLocationChange: true});
} else if (rd.error.statusCode === 401) {
router.navigateByUrl(`/${getUnauthorizedRoute()}`, {skipLocationChange: true});
router.navigateByUrl(getUnauthorizedRoute(), {skipLocationChange: true});
}
}
}));