Open annikaLiving opened 3 years ago
@joe-taylor this is for your review really. :)
@annikaLiving If I'm understanding correctly, you're pointing out that search queries and filters aren't reflected in the URL and thus cannot be shared. I agree whole heartedly that it is worth putting in the effort - at some point - to have search queries and filters reflected in the URL.
In terms of effort, it's not a simple matter of enabling an existing feature. It may require substantial effort to update the current code to correctly harness query string parameters for search. Managing get parameters together with whatever client-side state management system(s) is/are in place can be finicky in a JS framework context, especially with respect to how it interacts with the back button. It is likely that doing this will require a significant refactoring because state management of query params is a core part of the code base.
It is important that filtering by any Filter Search Results selected also appends to the url. No filtering applied: https://toyger.data.gov.bc.ca/datasets Filtering applied: same as above.
It is importat that searching by any word, also appends the words to the url No search: https://toyger.data.gov.bc.ca/datasets Search on Crown: same as above.
Cat Prod allows for the facets that are chosen as well as field query to allow for a subset to be returned. This is used heavily by DataBC and users.
e.g., https://catalogue.data.gov.bc.ca/dataset?download_audience=Public https://catalogue.data.gov.bc.ca/dataset?q=geocoder&download_audience=Public&sort=score+desc%2C+record_publish_date+desc
Is there an equivalent and if not this should be enabled.