Merge pull request #900 from vector-im/dbkr/parse_queries_in_hash

Always parse the hash of a URL as we do elsewhere
This commit is contained in:
David Baker 2016-02-10 13:51:36 +00:00
commit 98551c3f9a

View File

@ -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));
}
}