Sort query param persists between switching search tabs on entity page, breaking search if not configured #2729
Labels
affects: 7.x
Issue impacts 7.x releases
affects: 8.x
Issue impacts 8.x releases
bug
claimed: Atmire
Atmire team is working on this issue & will contribute back
component: Discovery
related to discovery search or browse system
Describe the bug
For an entity page with a tabbed search using two different search configuration. If you in one of the tabs select a sort order which does not exist on the config of the other tab & then switch to the other tab, this will show error there because this sort option that is still present in url and thus applied, doesn't exist for this tab's discovery config.
To Reproduce
Steps to reproduce the behavior:
spc.sf=dc.title&spc.sd=ASC
) doesn't exist for person discovery config.Expected behavior
When switching between search tabs on entity page, the search params in url should be cleared.
The text was updated successfully, but these errors were encountered: