mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
72699: Additional fixes for maintaining and clearing the redirect url on login components
This commit is contained in:
@@ -436,6 +436,10 @@ export class AuthService {
|
||||
this.store.dispatch(new SetRedirectUrlAction(isNotUndefined(url) ? url : ''));
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the redirect url if the current one has not been set yet
|
||||
* @param newRedirectUrl
|
||||
*/
|
||||
setRedirectUrlIfNotSet(newRedirectUrl: string) {
|
||||
this.getRedirectUrl().pipe(
|
||||
take(1))
|
||||
|
Reference in New Issue
Block a user