fix(jaas) replace only the first slash in a pathname

This commit is contained in:
Tudor-Ovidiu Avram 2020-11-16 11:01:31 +02:00
parent d97f46c163
commit b889bd5664
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}`;
}