Skip to content

Commit

Permalink
Fix encoding issues in Langviews and Redirect Views
Browse files Browse the repository at this point in the history
  • Loading branch information
MusikAnimal committed Jan 9, 2017
1 parent fe39a56 commit f753a27
Show file tree
Hide file tree
Showing 9 changed files with 24,875 additions and 106 deletions.
2 changes: 1 addition & 1 deletion javascripts/langviews/langviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class LangViews extends mix(Pv).with(ChartHelpers, ListHelpers) {
return history.replaceState(null, document.title, location.href.split('?')[0]);
}

const escapedPageName = $(this.config.sourceInput).val().score().replace(/[&%?]/g, escape);
const escapedPageName = $(this.config.sourceInput).val().score().replace(/[&%?+]/g, encodeURIComponent);

window.history.replaceState({}, document.title, `?${$.param(this.getParams())}&page=${escapedPageName}`);

Expand Down
2 changes: 1 addition & 1 deletion javascripts/redirectviews/redirectviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class RedirectViews extends mix(Pv).with(ChartHelpers, ListHelpers) {
return history.replaceState(null, document.title, location.href.split('?')[0]);
}

const escapedPageName = $(this.config.sourceInput).val().score().replace(/[&%?]/g, escape);
const escapedPageName = $(this.config.sourceInput).val().score().replace(/[&%?+]/g, encodeURIComponent);

window.history.replaceState({}, document.title, `?${$.param(this.getParams())}&page=${escapedPageName}`);

Expand Down
3,575 changes: 3,559 additions & 16 deletions public_html/application.js

Large diffs are not rendered by default.

4,103 changes: 4,088 additions & 15 deletions public_html/langviews/application.js

Large diffs are not rendered by default.

4,103 changes: 4,088 additions & 15 deletions public_html/massviews/application.js

Large diffs are not rendered by default.

3,575 changes: 3,559 additions & 16 deletions public_html/meta/application.js

Large diffs are not rendered by default.

4,102 changes: 4,087 additions & 15 deletions public_html/redirectviews/application.js

Large diffs are not rendered by default.

3,575 changes: 3,559 additions & 16 deletions public_html/siteviews/application.js

Large diffs are not rendered by default.

1,944 changes: 1,933 additions & 11 deletions public_html/topviews/application.js

Large diffs are not rendered by default.

0 comments on commit f753a27

Please sign in to comment.