72699: Remove unnecessary method

This commit is contained in:
Kristof De Langhe
2020-08-27 14:56:20 +02:00
parent 55c45f5f6c
commit a3df6ce474

View File

@@ -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)) {