Merge pull request #1610 from thecodingmachine/fixingQueryParamsRegisterUrl

Fixing "Query string parameters prevent WA from loading"
This commit is contained in:
grégoire parant 2021-11-30 17:45:07 +01:00 committed by GitHub
commit 4875a8fed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,13 +132,14 @@ class ConnectionManager {
const roomUrl = data.roomUrl;
const query = urlParams.toString();
this._currentRoom = await Room.createRoom(
new URL(
window.location.protocol +
"//" +
window.location.host +
roomUrl +
urlParams.toString() + //use urlParams because the token param must be deleted
(query ? "?" + query : "") + //use urlParams because the token param must be deleted
window.location.hash
)
);