RED-4248: Fixed 'back' to file

This commit is contained in:
Adina Țeudan 2022-06-14 20:58:23 +03:00
parent bde92dd45d
commit ba53b85432

View File

@ -20,10 +20,11 @@ export class RouterHistoryService {
} }
navigateToLastDossiersScreen(): void { navigateToLastDossiersScreen(): void {
if (this._router.url === this._lastDossiersScreen) { if (this._router.url === decodeURI(this._lastDossiersScreen)) {
this._router.navigate(['/']); this._router.navigate(['/']);
} else { } else {
this._router.navigate([this._lastDossiersScreen]); const url = decodeURI(this._lastDossiersScreen).split('?')[0];
this._router.navigate([url]);
} }
} }
} }