Skip to content
Snippets Groups Projects
Commit 3612ff4f authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

Merge branch '320-orientation-mauvais-filtres-regression' into 'dev'

Resolve "[orientation] - mauvais filtres - Regression"

See merge request !532
parents 04aa3fdb 89ab06ff
No related branches found
No related tags found
2 merge requests!542V2.3.1,!532Resolve "[orientation] - mauvais filtres - Regression"
...@@ -109,8 +109,13 @@ export class StructureListSearchComponent implements OnInit { ...@@ -109,8 +109,13 @@ export class StructureListSearchComponent implements OnInit {
//Update url with new params added or removed //Update url with new params added or removed
public updateUrlParams(filters: Filter[]): void { 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 // 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) return; if (
(this.activatedRoute.snapshot.queryParams['id'] && filters.length === 0) ||
this.router.url.startsWith('/orientation')
) {
return;
}
let queryString = []; let queryString = [];
filters.forEach((elt) => { filters.forEach((elt) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment