Skip to content

Commit 98551c3

Browse files
committed
Merge pull request element-hq#900 from vector-im/dbkr/parse_queries_in_hash
Always parse the hash of a URL as we do elsewhere
2 parents 27791c0 + 1732805 commit 98551c3

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)