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(sip-invite) fix baseurl case sensitive replacement

Tudor-Ovidiu Avram3339a1d19f54
diff --git a/react/features/invite/functions.js b/react/features/invite/functions.js
index 83ee9a48e9..1fad5b6b94 100644
--- a/react/features/invite/functions.js
+++ b/react/features/invite/functions.js
@@ -829,8 +829,9 @@ export function inviteSipEndpoints( // eslint-disable-line max-params
return Promise.resolve();
}
+ const regex = new RegExp(`/${roomName}`, 'i');
const baseUrl = Object.assign(new URL(locationURL.toString()), {
- pathname: locationURL.pathname.replace(`/${roomName}`, ''),
+ pathname: locationURL.pathname.replace(regex, ''),
hash: '',
search: ''
});