diff --git a/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts b/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts index 0127767944e1884bc1db6852136be14ab997f303..25fbe350b5b984434b4f4a51d36b31362cae38cd 100644 --- a/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts +++ b/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts @@ -109,8 +109,13 @@ export class StructureListSearchComponent implements OnInit { //Update url with new params added or removed public updateUrlParams(filters: Filter[]): void { - // No url update if the page is displaying structure details, because it must keep the url with the structure id - if (this.activatedRoute.snapshot.queryParams['id'] && filters.length === 0) return; + // No url update if the page is displaying structure details, because it must keep the url with the structure id, neither for orientation + if ( + (this.activatedRoute.snapshot.queryParams['id'] && filters.length === 0) || + this.router.url.startsWith('/orientation') + ) { + return; + } let queryString = []; filters.forEach((elt) => {