Skip to content

Commit

Permalink
fix for iron-meteor#11
Browse files Browse the repository at this point in the history
  • Loading branch information
welelay committed Apr 10, 2015
1 parent e373a06 commit 91e6078
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ Url.prototype.resolve = function (params, options) {

value = _.isFunction(value) ? value.call(params) : value;
var escapedValue = _.map(String(value).split('/'), function (segment) {
return encodeURIComponent(segment);
return encodeURIComponent(segment).replace(/\*/g, '%A2');
}).join('/');
return slash + escapedValue
}
Expand All @@ -353,7 +353,8 @@ Url.prototype.resolve = function (params, options) {
return encodeURIComponent(segment);
}).join('/');
}
);
)
.replace(/%A2/g, '*');

query = Url.toQueryString(query);

Expand Down

0 comments on commit 91e6078

Please sign in to comment.