Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2016-10-01 07:44:08 +0300
committerGitHub <noreply@github.com>2016-10-01 07:44:08 +0300
commit5daf6c2388693746f2a47a9e6c31276d0b423a4f (patch)
treec8169f3239eb6b539174a5afac7b02a1a52a8462 /plugins
parent65bc19b4dca9cd951c36bb5de39231aed2df85dd (diff)
Creating segments with weird characters sometimes doesn't work
fixes #10601
Diffstat (limited to 'plugins')
-rw-r--r--plugins/SegmentEditor/javascripts/Segmentation.js2
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 {