Added more debug logs for testserver

This commit is contained in:
Julius Gruber
2019-10-16 10:08:49 +02:00
parent 6718bfdcfe
commit 26fd261d17

View File

@@ -372,6 +372,7 @@ export class AuthService {
* Redirect to the route navigated before the login * Redirect to the route navigated before the login
*/ */
public redirectAfterLoginSuccess(isStandalonePage: boolean) { public redirectAfterLoginSuccess(isStandalonePage: boolean) {
console.log('isStandAlonePage: ', isStandalonePage);
this.getRedirectUrl().pipe( this.getRedirectUrl().pipe(
take(1)) take(1))
.subscribe((redirectUrl) => { .subscribe((redirectUrl) => {
@@ -392,7 +393,7 @@ export class AuthService {
// For standalone login pages, use the previous route. // For standalone login pages, use the previous route.
redirUrl = history[history.length - 2] || ''; redirUrl = history[history.length - 2] || '';
} else { } else {
console.log('isStandAlonePage: ', isStandalonePage); // console.log('isStandAlonePage: ', isStandalonePage);
console.log( 'history[history.length - 1; ', history[history.length - 1]); console.log( 'history[history.length - 1; ', history[history.length - 1]);
redirUrl = history[history.length - 1] || ''; redirUrl = history[history.length - 1] || '';
} }