diff --git a/apps/red-ui/src/app/services/router-history.service.ts b/apps/red-ui/src/app/services/router-history.service.ts index 7da5297b0..a7a976343 100644 --- a/apps/red-ui/src/app/services/router-history.service.ts +++ b/apps/red-ui/src/app/services/router-history.service.ts @@ -20,10 +20,11 @@ export class RouterHistoryService { } navigateToLastDossiersScreen(): void { - if (this._router.url === this._lastDossiersScreen) { + if (this._router.url === decodeURI(this._lastDossiersScreen)) { this._router.navigate(['/']); } else { - this._router.navigate([this._lastDossiersScreen]); + const url = decodeURI(this._lastDossiersScreen).split('?')[0]; + this._router.navigate([url]); } } }