]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
fix navigation to /documents breaks history 1376/head
authorMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Mon, 8 Aug 2022 07:05:19 +0000 (00:05 -0700)
committerMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Mon, 8 Aug 2022 07:05:19 +0000 (00:05 -0700)
src-ui/src/app/services/document-list-view.service.ts

index 764febb4b4752a4ec2b25c8a2db7705863347b16..1dea011c020cd8605b4c849713ed69415969810f 100644 (file)
@@ -225,6 +225,7 @@ export class DocumentListViewService {
             let base = ['/documents']
             this.router.navigate(base, {
               queryParams: paramsFromViewState(activeListViewState),
+              replaceUrl: !this.router.routerState.snapshot.url.includes('?'), // in case navigating from params-less /documents
             })
           } else if (this._activeSavedViewId) {
             this.router.navigate([], {