Skip to content

Commit

Permalink
normalize _all_ IDs and URIs, not only ones in q query
Browse files Browse the repository at this point in the history
  • Loading branch information
bertspaan committed Aug 15, 2015
1 parent 4c69bfb commit 98e1a3a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ function preprocessSearchParams(query, substructure, processedQuery, prefix) {
Object.keys(substructure).forEach(function(param) {
var pParam = prefix + param;
if (query[pParam]) {
processedQuery[pParam] = query[pParam];
if (param === 'uri' || param === 'id') {
var normalized = normalizeUri(query[pParam]);
processedQuery[pParam] = normalized.normalized;
} else {
processedQuery[pParam] = query[pParam];
}
}
});

Expand Down

0 comments on commit 98e1a3a

Please sign in to comment.