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.

This commit is contained in:
David Baker 2016-02-10 13:45:24 +00:00
parent 27791c06ee
commit 1732805f31

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