Properly handle querystring filters

This commit is contained in:
Brandon Taylor
2019-02-12 11:15:17 -05:00
parent 598a97c997
commit 1e395ab3f0
2 changed files with 4 additions and 6 deletions
@@ -10,7 +10,7 @@
var urlParts = url.split('?');
if (urlParts.length === 2 && urlParts[1].substr(0, 2) !== 'q=') {
$('a#change-order').attr('href', './sort/?filter_expression=' + urlParts[1]);
$('a#change-order').attr('href', './sort/?' + urlParts[1]);
}
});
})(django.jQuery);