Remove query parameters from the URL visible to the user
This commit is contained in:
parent
443c29f505
commit
8de3e0ff0b
|
@ -280,10 +280,15 @@ UI.setLocalRaisedHandStatus = (raisedHandStatus) => {
|
|||
*/
|
||||
UI.initConference = function () {
|
||||
let id = APP.conference.getMyUserId();
|
||||
Toolbar.updateRoomUrl(
|
||||
// Do not include query parameters
|
||||
// "https://example.com" + "/SomeConference1245"
|
||||
window.location.origin + window.location.pathname);
|
||||
|
||||
// Do not include query parameters in the invite URL
|
||||
// "https://example.com" + "/SomeConference1245"
|
||||
var inviteURL = window.location.origin + window.location.pathname;
|
||||
Toolbar.updateRoomUrl(inviteURL);
|
||||
// Clean up the URL displayed by the browser
|
||||
if (window.history && typeof window.history.replaceState === 'function') {
|
||||
window.history.replaceState({}, document.title, inviteURL);
|
||||
}
|
||||
|
||||
// Add myself to the contact list.
|
||||
ContactList.addContact(id);
|
||||
|
|
Loading…
Reference in New Issue