Filters params remain when switching tabs
Summary
Search filters are not cleared when switching to a new result tab.
Steps to reproduce
- Search for Merge requests in a group, project, or globally (https://gitlab.com/search?group_id=9970&project_id=278964&repository_ref=master&scope=merge_requests&search=test&snippets=false&state=merged)
- Choose status of
merged
from the Status drop down - Change to the Issues tab
- The URL still contains the filter state which causes the search to not find any results
What is the current bug behavior?
No results will be found for issues search if a state is selected which is not supported
What is the expected correct behavior?
Issues search should return results
Relevant logs and/or screenshots
Search URL generated by the steps above
Removing the state will return results
Possible fixes
It's probably a good practice to clear all filters when switching tabs