Skip to content

Commit

Permalink
fix(util): ignore empty query param in getQueryString
Browse files Browse the repository at this point in the history
  • Loading branch information
ciekawy committed Feb 22, 2016
1 parent b53d707 commit 908ea8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ionic/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function getQuerystring(url: string): any {
const startIndex = url.indexOf('?');
if (startIndex !== -1) {
const queries = url.slice(startIndex + 1).split('&');
queries.forEach((param) => {
queries.filter((param) => { return param.indexOf('=') > 0; }).forEach((param) => {
var split = param.split('=');
queryParams[split[0].toLowerCase()] = split[1].split('#')[0];
});
Expand Down

0 comments on commit 908ea8c

Please sign in to comment.