mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +00:00
74053: Fix double slash in route
This commit is contained in:
@@ -181,9 +181,9 @@ export const redirectOn404Or401 = (router: Router) =>
|
|||||||
tap((rd: RemoteData<T>) => {
|
tap((rd: RemoteData<T>) => {
|
||||||
if (rd.hasFailed) {
|
if (rd.hasFailed) {
|
||||||
if (rd.error.statusCode === 404) {
|
if (rd.error.statusCode === 404) {
|
||||||
router.navigateByUrl(`/${getPageNotFoundRoute()}`, {skipLocationChange: true});
|
router.navigateByUrl(getPageNotFoundRoute(), {skipLocationChange: true});
|
||||||
} else if (rd.error.statusCode === 401) {
|
} else if (rd.error.statusCode === 401) {
|
||||||
router.navigateByUrl(`/${getUnauthorizedRoute()}`, {skipLocationChange: true});
|
router.navigateByUrl(getUnauthorizedRoute(), {skipLocationChange: true});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
Reference in New Issue
Block a user