File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/components/CategoryList Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -168,9 +168,11 @@ export default class CategoryList extends React.Component {
168
168
{ this . state . openClasses . includes ( id ) &&
169
169
c . filters . map ( ( filterData , index ) => {
170
170
const { name, filter, id } = filterData ;
171
- const url = `${ this . props . linkPrefix } ${ c . name } ?filters=${ encodeURIComponent (
172
- filter
173
- ) } &filterId=${ id } `;
171
+ // Only include filterId in URL if the filter has an ID (modern filters)
172
+ // Legacy filters without ID should work with just the filter content
173
+ const url = id
174
+ ? `${ this . props . linkPrefix } ${ c . name } ?filters=${ encodeURIComponent ( filter ) } &filterId=${ id } `
175
+ : `${ this . props . linkPrefix } ${ c . name } ?filters=${ encodeURIComponent ( filter ) } ` ;
174
176
return (
175
177
< div key = { index } className = { styles . childLink } >
176
178
< Link
You can’t perform that action at this time.
0 commit comments