Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #633 from marcom-unimelb/fix-revert-url-matching
Browse files Browse the repository at this point in the history
revert to match all case in querystring
  • Loading branch information
waitingallday committed May 18, 2016
2 parents a5ce1aa + 8d67ccf commit 88e6100
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/targets/components/filtered-listings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ FilteredListing.prototype.parseQuery = function () {
var i, query = window.location.search.substr(1).split('&');
for (i = query.length - 1; i >= 0; i--) {
var param = query[i].split("=");
var val = decodeURIComponent(param[1]);

// Match any case on a given querystring
var val = decodeURIComponent(param[1]).toLowerCase();
switch (param[0]) {
case 'section':
params.section = val;
Expand Down

0 comments on commit 88e6100

Please sign in to comment.