Skip to content

Commit 1732805

Browse files
committed
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.
1 parent 27791c0 commit 1732805

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vector/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ function routeUrl(location) {
9494
else if (location.hash.indexOf('#/register') == 0) {
9595
window.matrixChat.showScreen('register', parseQsFromFragment(location));
9696
} else {
97-
window.matrixChat.showScreen(location.hash.substring(2));
97+
var hashparts = location.hash.split('?');
98+
window.matrixChat.showScreen(hashparts[0].substring(2));
9899
}
99100
}
100101

0 commit comments

Comments
 (0)