mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
Added new auth redirect code for ssr.
This commit is contained in:
@@ -368,7 +368,7 @@ export class AuthService {
|
||||
|
||||
}
|
||||
|
||||
private navigateToRedirectUrl(url: string) {
|
||||
protected navigateToRedirectUrl(url: string) {
|
||||
// in case the user navigates directly to /login (via bookmark, etc), or the route history is not found.
|
||||
if (isEmpty(url) || url.startsWith(LOGIN_ROUTE)) {
|
||||
this.router.navigate(['/']);
|
||||
|
Reference in New Issue
Block a user