From 3957222da3eb5a4119806bf798d7fb24b8c74deb Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 25 Apr 2018 15:06:45 +0100 Subject: [PATCH] Alter hashRegex to expect all handled URLs --- src/Analytics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Analytics.js b/src/Analytics.js index b8b98e303b..719b9eecaa 100644 --- a/src/Analytics.js +++ b/src/Analytics.js @@ -20,7 +20,7 @@ import SdkConfig, { DEFAULTS } from './SdkConfig'; import Modal from './Modal'; import sdk from './index'; -const hashRegex = /#\/(group|room|user)\/(.+)/; +const hashRegex = /#\/(groups?|room|user|settings|register|login|forgot_password|home|directory)/; // Remove all but the first item in the hash path. Redact unexpected hashes. function getRedactedHash(hash) {