Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Build the assets, dummy. #130

Merged
merged 1 commit into from
Feb 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.