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:
Art Lowel
2020-04-24 13:16:52 +02:00
parent a6d7b6444c
commit c2789dfbf7
3 changed files with 22 additions and 3 deletions

View File

@@ -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()}`;
}
/**