Skip to content

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

fix back button double history bug

Michael Shamoonce32089cc400
diff --git a/src-ui/src/app/services/query-params.service.ts b/src-ui/src/app/services/query-params.service.ts
index 92346ff00..1528dca57 100644
--- a/src-ui/src/app/services/query-params.service.ts
+++ b/src-ui/src/app/services/query-params.service.ts
@@ -74,8 +74,12 @@ export class QueryParamsService {
) {
// this is navigating to /documents so we need to update the params from the list
this.updateFilterRules(this.list.filterRules, false)
- this.sortField = this.list.sortField
- this.sortReverse = this.list.sortReverse
+ this.sortParams[SORT_FIELD_PARAMETER] = this.list.sortField
+ this.sortParams[SORT_REVERSE_PARAMETER] = this.list.sortReverse
+ this.router.navigate([], {
+ queryParams: this.params,
+ replaceUrl: true,
+ })
}
}