diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2016-10-01 07:44:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-01 07:44:08 +0300 |
commit | 5daf6c2388693746f2a47a9e6c31276d0b423a4f (patch) | |
tree | c8169f3239eb6b539174a5afac7b02a1a52a8462 /plugins/SegmentEditor/javascripts | |
parent | 65bc19b4dca9cd951c36bb5de39231aed2df85dd (diff) |
Creating segments with weird characters sometimes doesn't work
fixes #10601
Diffstat (limited to 'plugins/SegmentEditor/javascripts')
-rw-r--r-- | plugins/SegmentEditor/javascripts/Segmentation.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js index 66a5e3480a..12470675be 100644 --- a/plugins/SegmentEditor/javascripts/Segmentation.js +++ b/plugins/SegmentEditor/javascripts/Segmentation.js @@ -1276,7 +1276,7 @@ $(document).ready(function() { if (segmentDefinition !== $search.segment) { // eg when using back button the date might be actually already changed in the URL and we do not // want to change the URL again - $search.segment = segmentDefinition; + $search.segment = segmentDefinition.replace(/%$/, '%25').replace(/%([^\d].)/g, "%25$1"); $location.search($search); setTimeout(function () { try { |