mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Fixed issue that redirect always to home page after checking authentication on CSR
This commit is contained in:
@@ -423,6 +423,7 @@ export class AuthService {
|
|||||||
} else {
|
} else {
|
||||||
// If redirectUrl is empty use history.
|
// If redirectUrl is empty use history.
|
||||||
this.routeService.getHistory().pipe(
|
this.routeService.getHistory().pipe(
|
||||||
|
filter((history) => history.length > 0),
|
||||||
take(1)
|
take(1)
|
||||||
).subscribe((history) => {
|
).subscribe((history) => {
|
||||||
let redirUrl;
|
let redirUrl;
|
||||||
|
Reference in New Issue
Block a user