From a3df6ce47469506688c656a42fd9d3c7998e464c Mon Sep 17 00:00:00 2001 From: Kristof De Langhe Date: Thu, 27 Aug 2020 14:56:20 +0200 Subject: [PATCH] 72699: Remove unnecessary method --- src/app/core/auth/auth.service.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/app/core/auth/auth.service.ts b/src/app/core/auth/auth.service.ts index f79ae5d0fd..1a3dfbbdc0 100644 --- a/src/app/core/auth/auth.service.ts +++ b/src/app/core/auth/auth.service.ts @@ -419,20 +419,9 @@ export class AuthService { } /** - * Redirect to the route navigated before the login + * Perform a hard redirect to the URL + * @param redirectUrl */ - public redirectAfterLoginSuccess() { - this.getRedirectUrl().pipe( - take(1)) - .subscribe((redirectUrl) => { - if (hasValue(redirectUrl)) { - this.clearRedirectUrl(); - this.navigateToRedirectUrl(redirectUrl); - } - }); - - } - public navigateToRedirectUrl(redirectUrl: string) { let url = `/reload/${new Date().getTime()}`; if (isNotEmpty(redirectUrl) && !redirectUrl.startsWith(LOGIN_ROUTE)) {