mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
Added logs for testserver
This commit is contained in:
@@ -386,11 +386,14 @@ export class AuthService {
|
|||||||
this.routeService.getHistory().pipe(
|
this.routeService.getHistory().pipe(
|
||||||
take(1)
|
take(1)
|
||||||
).subscribe((history) => {
|
).subscribe((history) => {
|
||||||
|
console.log('HISTORY: ', history);
|
||||||
let redirUrl;
|
let redirUrl;
|
||||||
if (isStandalonePage) {
|
if (isStandalonePage) {
|
||||||
// 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( 'history[history.length - 1; ', history[history.length - 1]);
|
||||||
redirUrl = history[history.length - 1] || '';
|
redirUrl = history[history.length - 1] || '';
|
||||||
}
|
}
|
||||||
this.navigateToRedirectUrl(redirUrl);
|
this.navigateToRedirectUrl(redirUrl);
|
||||||
|
Reference in New Issue
Block a user