Merge pull request #319 from atmire/w2p-56119_fixed-facet-issue-when-logged-on

Fixed issue where facets could not be changed when you are logged in
This commit is contained in:
Tim Donohue
2018-10-31 15:24:49 -05:00
committed by GitHub

View File

@@ -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 */