Skip to content

Commit d0f5cc8

Browse files
committed
fix navigation to /documents breaks history
1 parent 110bd65 commit d0f5cc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src-ui/src/app/services/document-list-view.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ export class DocumentListViewService {
225225
let base = ['/documents']
226226
this.router.navigate(base, {
227227
queryParams: paramsFromViewState(activeListViewState),
228+
replaceUrl: !this.router.routerState.snapshot.url.includes('?'), // in case navigating from params-less /documents
228229
})
229230
} else if (this._activeSavedViewId) {
230231
this.router.navigate([], {

0 commit comments

Comments
 (0)