From 1732805f31a1838424113bea6d099405d4804a83 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 10 Feb 2016 13:45:24 +0000 Subject: [PATCH] Always parse the hash of a URL as we do elsewhere by looking for a query string part, otherwise we end up passing the query into showscreen which then spreads havok. --- src/vector/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vector/index.js b/src/vector/index.js index 1d845adf0..0d2b19ee8 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -94,7 +94,8 @@ function routeUrl(location) { else if (location.hash.indexOf('#/register') == 0) { window.matrixChat.showScreen('register', parseQsFromFragment(location)); } else { - window.matrixChat.showScreen(location.hash.substring(2)); + var hashparts = location.hash.split('?'); + window.matrixChat.showScreen(hashparts[0].substring(2)); } }