From a1b0fa0f4094af9108b025606d120120ece77504 Mon Sep 17 00:00:00 2001 From: chrismclarke Date: Thu, 22 Feb 2024 14:58:20 -0800 Subject: [PATCH] fix: resources search nav --- .../resources-tool/src/app/pages/search/search.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/picsa-tools/resources-tool/src/app/pages/search/search.component.ts b/apps/picsa-tools/resources-tool/src/app/pages/search/search.component.ts index c71278aaf..4649dbdc0 100644 --- a/apps/picsa-tools/resources-tool/src/app/pages/search/search.component.ts +++ b/apps/picsa-tools/resources-tool/src/app/pages/search/search.component.ts @@ -118,6 +118,6 @@ export class ResourceSearchComponent implements OnInit, OnDestroy { /** Update route param to match search text. Passing undefined will remove the param */ private setRouteSearchParam(searchText?: string) { const queryParams = { searchText }; - this.router.navigate([], { relativeTo: this.route, queryParams }); + this.router.navigate([], { relativeTo: this.route, queryParams, replaceUrl: true }); } }