Skip to content

Commit

Permalink
Merge pull request #130 from tightenco/build-assets
Browse files Browse the repository at this point in the history
Build the assets, dummy.
  • Loading branch information
DanielCoulbourne authored Feb 17, 2018
2 parents cbb8d86 + fde5ecb commit 0de6206
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/js/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ var Router = function (_String) {
paramsArrayKey++;
if (typeof tags[key] !== 'undefined') {
delete this.queryParams[key];
return tags[key].id || tags[key];
return tags[key].id || encodeURIComponent(tags[key]);
}
if (tag.indexOf('?') === -1) {
throw new Error('Ziggy Error: \'' + keyName + '\' key is required for route \'' + this.name + '\'');
Expand Down Expand Up @@ -193,7 +193,7 @@ var Router = function (_String) {

Object.keys(this.queryParams).forEach(function (key, i) {
queryString = i === 0 ? queryString : queryString + '&';
queryString += key + '=' + this.queryParams[key];
queryString += key + '=' + encodeURIComponent(this.queryParams[key]);
}.bind(this));

return queryString;
Expand Down
2 changes: 1 addition & 1 deletion dist/js/route.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0de6206

Please sign in to comment.