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:
authordizzy <diosmosis@users.noreply.github.com>2022-05-25 03:39:57 +0300
committerGitHub <noreply@github.com>2022-05-25 03:39:57 +0300
commit023676b4edbcc501d2659fcfaaeeff22fb8931e5 (patch)
tree6a878d2f64050f69a9120208a78bbac1c09ef29c /plugins/CoreHome/vue/src
parent6fdb64ae3ee6d3a790bf6d7a832f82784496c9f7 (diff)
make sure segment is not double encoded in sparkline url (#19260)
Diffstat (limited to 'plugins/CoreHome/vue/src')
-rw-r--r--plugins/CoreHome/vue/src/Sparkline/Sparkline.vue4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CoreHome/vue/src/Sparkline/Sparkline.vue b/plugins/CoreHome/vue/src/Sparkline/Sparkline.vue
index 37f9008d0e..869d26dc09 100644
--- a/plugins/CoreHome/vue/src/Sparkline/Sparkline.vue
+++ b/plugins/CoreHome/vue/src/Sparkline/Sparkline.vue
@@ -51,6 +51,10 @@ export default defineComponent({
colors,
random: Date.now(),
date: this.defaultDate,
+ // mixinDefaultGetParams() will use the raw, encoded value from the URL (legacy behavior),
+ // which means MatomoUrl.stringify() will end up double encoding it if we don't set it
+ // ourselves here.
+ segment: MatomoUrl.parsed.value.segment as string,
};
const helper = new AjaxHelper();