Merge pull request #8110 from jitsi/tavram/fix-double-slash

fix(jaas) replace only the first slash in a pathname
This commit is contained in:
Avram Tudor 2020-11-16 11:26:09 +02:00 committed by GitHub
commit 76c9d96361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ export function getInviteURL(stateOrGetState: Function | Object): string {
if (inviteDomain) {
const meetingId
= state['features/base/config'].brandingRoomAlias || urlWithoutParams.pathname.replace('/', '');
= state['features/base/config'].brandingRoomAlias || urlWithoutParams.pathname.replace(/\//, '');
return `${inviteDomain}/${meetingId}`;
}