Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Tudor-Ovidiu Avramb889bd56647c
diff --git a/react/features/base/connection/functions.js b/react/features/base/connection/functions.js
index 9338464c13..f0d30bce44 100644
--- a/react/features/base/connection/functions.js
+++ b/react/features/base/connection/functions.js
@@ -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}`;
}