Improve updating the URL with filterCode
Current implementation commonly calls
navigateTo to update the
filterCode in the URL. This can sometimes produce undesired navigation to a different page. Scenario:
- In explore, apply filter
- As it is loading, click an accession
- Accession page will open, but will navigate back to browse when that API call succeeds
We now change the path in
navigateTo so that user is navigated from institute page to browse accessions page.
The improved version should only update the URL if the current path matches the target path.
Navigation from institute to browse accessions page:
applyFiltersFor...action should make the API call to load data and also to immediately navigate to
/a(no known filter)
- This renders the accessions browse page with a loading indicator
- When load finishes, the URL is updated with the new