Merge pull request #757 from jitsi/remove_query_string

Removes query arguments from the invite URL/address bar URL.
This commit is contained in:
George Politis 2016-08-01 14:22:43 -05:00 committed by GitHub
commit 75eb30b09d
1 changed files with 9 additions and 1 deletions

View File

@ -280,7 +280,15 @@ UI.setLocalRaisedHandStatus = (raisedHandStatus) => {
*/
UI.initConference = function () {
let id = APP.conference.getMyUserId();
Toolbar.updateRoomUrl(window.location.href);
// 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);