Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

fix navigation to /documents breaks history

Michael Shamoond0f5cc839f15
diff --git a/src-ui/src/app/services/document-list-view.service.ts b/src-ui/src/app/services/document-list-view.service.ts
index 764febb4b..1dea011c0 100644
--- a/src-ui/src/app/services/document-list-view.service.ts
+++ b/src-ui/src/app/services/document-list-view.service.ts
@@ -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([], {