mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
[DSC-287] invalidate root endpoint cache when redirected to 500 page in order to check every time the rest server availability
This commit is contained in:
@@ -32,6 +32,7 @@ export class ServerCheckGuard implements CanActivate {
|
||||
map((res: RemoteData<any>) => res.hasSucceeded),
|
||||
tap((hasSucceeded: boolean) => {
|
||||
if (!hasSucceeded) {
|
||||
this.rootDataService.invalidateRootCache();
|
||||
this.router.navigateByUrl(getPageInternalServerErrorRoute());
|
||||
}
|
||||
}),
|
||||
|
Reference in New Issue
Block a user