From d154caf0393d922bfa53c2a91bea6c54ae2df4c6 Mon Sep 17 00:00:00 2001 From: lotte Date: Fri, 12 Oct 2018 15:06:10 +0200 Subject: [PATCH] 56119: fixed issue where facets could not be changed when you are logged on --- src/app/core/auth/auth.service.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/app/core/auth/auth.service.ts b/src/app/core/auth/auth.service.ts index 5f113b0262..1105abe3c7 100644 --- a/src/app/core/auth/auth.service.ts +++ b/src/app/core/auth/auth.service.ts @@ -340,14 +340,10 @@ export class AuthService { this.getRedirectUrl() .first() .subscribe((redirectUrl) => { + if (isNotEmpty(redirectUrl)) { this.clearRedirectUrl(); - - // override the route reuse strategy - this.router.routeReuseStrategy.shouldReuseRoute = () => { - return false; - }; - this.router.navigated = false; + this.router.onSameUrlNavigation = 'reload'; const url = decodeURIComponent(redirectUrl); this.router.navigateByUrl(url); /* TODO Reenable hard redirect when REST API can handle x-forwarded-for, see https://github.com/DSpace/DSpace/pull/2207 */