mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 18:44:14 +00:00
fix issue where a hard refresh wouldn't work to clear the state due to the browser caching the html
This commit is contained in:
@@ -460,8 +460,9 @@ export class AuthService {
|
||||
* Refresh route navigated
|
||||
*/
|
||||
public refreshAfterLogout() {
|
||||
// Hard redirect to home page, so that all state is definitely lost
|
||||
this._window.nativeWindow.location.href = '/home';
|
||||
// Hard redirect to the reload page with a unique number behind it
|
||||
// so that all state is definitely lost
|
||||
this._window.nativeWindow.location.href = `/reload/${new Date().getTime()}`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user