fix navigation to /documents breaks history

This commit is contained in:
Michael Shamoon 2022-08-08 00:05:19 -07:00
parent 110bd65c20
commit d0f5cc839f

View File

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