Fixed issue that redirect always to home page after checking authentication on CSR

This commit is contained in:
Giuseppe Digilio
2020-07-21 18:53:09 +02:00
parent 607318f6c5
commit 6fecdfadb2

View File

@@ -423,6 +423,7 @@ export class AuthService {
} else {
// If redirectUrl is empty use history.
this.routeService.getHistory().pipe(
filter((history) => history.length > 0),
take(1)
).subscribe((history) => {
let redirUrl;