From 56df54f9460393b5c8551c1c5432f141199a36d6 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 7 Jun 2017 11:17:57 +0100 Subject: [PATCH] hardcode logged url to riot.im/app so piwik has a base to work with, it gets confused when a CustomURL isn't actually a URL (like it wasn't after the latest redaction fixes. Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/Analytics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Analytics.js b/src/Analytics.js index c079011db7..fcedf43ab9 100644 --- a/src/Analytics.js +++ b/src/Analytics.js @@ -20,9 +20,9 @@ import PlatformPeg from './PlatformPeg'; import SdkConfig from './SdkConfig'; function getRedactedUrl() { - const base = window.location.pathname.split('/').slice(-2).join('/'); const redactedHash = window.location.hash.replace(/#\/(room|user)\/(.+)/, "#/$1/"); - return base + redactedHash; + // hardcoded url to make piwik happy + return 'https://riot.im/app/' + redactedHash; } const customVariables = {