Skip to content
Snippets Groups Projects
Commit 8215212c authored by Chris Lawton's avatar Chris Lawton
Browse files

redirect to url without query params after clearing filters

parent 187a17da
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
const $closeButton = $('.js-close-filters'); const $closeButton = $('.js-close-filters');
const $clearButton = $('.js-clear-filters'); const $clearButton = $('.js-clear-filters');
const filterOpenClass = 'filters-open'; const filterOpenClass = 'filters-open';
const submissionsUrl = '/apply/submissions/';
const filterActiveClass = 'is-active'; const filterActiveClass = 'is-active';
// check if the page has a query string and keep filters open if so on desktop // check if the page has a query string and keep filters open if so on desktop
...@@ -62,7 +61,7 @@ ...@@ -62,7 +61,7 @@
// redirect to submissions home to clear filters // redirect to submissions home to clear filters
function handleClearFilters() { function handleClearFilters() {
window.location.href = submissionsUrl; window.location.href = window.location.href.split('?')[0];
} }
// toggle filters button wording // toggle filters button wording
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment