@@ -1201,11 +1201,11 @@ class Browser extends DashboardView {
12011201 } else {
12021202 const source = this . props . params . className ;
12031203 const _filters = JSON . stringify ( filters . toJSON ( ) ) ;
1204-
1204+
12051205 // Preserve filterId from current URL if it exists
12061206 const currentUrlParams = new URLSearchParams ( window . location . search ) ;
12071207 const currentFilterId = currentUrlParams . get ( 'filterId' ) ;
1208-
1208+
12091209 let url = `browser/${ source } ` ;
12101210 if ( filters . size === 0 ) {
12111211 // If no filters, don't include any query parameters
@@ -1214,15 +1214,15 @@ class Browser extends DashboardView {
12141214 // Build query parameters
12151215 const queryParams = new URLSearchParams ( ) ;
12161216 queryParams . set ( 'filters' , _filters ) ;
1217-
1217+
12181218 // Preserve filterId if it exists in current URL
12191219 if ( currentFilterId ) {
12201220 queryParams . set ( 'filterId' , currentFilterId ) ;
12211221 }
1222-
1222+
12231223 url = `browser/${ source } ?${ queryParams . toString ( ) } ` ;
12241224 }
1225-
1225+
12261226 // filters param change is making the fetch call
12271227 this . props . navigate ( generatePath ( this . context , url ) ) ;
12281228 }
@@ -1371,20 +1371,20 @@ class Browser extends DashboardView {
13711371 // Preserve filterId from current URL if it exists
13721372 const currentUrlParams = new URLSearchParams ( window . location . search ) ;
13731373 const currentFilterId = currentUrlParams . get ( 'filterId' ) ;
1374-
1374+
13751375 let url = this . getRelationURL ( ) ;
13761376 if ( filters && filters . size ) {
13771377 const queryParams = new URLSearchParams ( ) ;
13781378 queryParams . set ( 'filters' , JSON . stringify ( filters . toJSON ( ) ) ) ;
1379-
1379+
13801380 // Preserve filterId if it exists in current URL
13811381 if ( currentFilterId ) {
13821382 queryParams . set ( 'filterId' , currentFilterId ) ;
13831383 }
1384-
1384+
13851385 url = `${ url } ?${ queryParams . toString ( ) } ` ;
13861386 }
1387-
1387+
13881388 this . props . navigate ( url ) ;
13891389 }
13901390 ) ;
0 commit comments