You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-04 11:51:45 +03:00
Remove leading slash from /addwidget Jitsi confs (#7175)
* Remove leading slash from /addwidget Jitsi confs Fixes https://github.com/vector-im/element-web/issues/19839 Signed-off-by: Andrew Ferrazzutti <fair@miscworks.net> * Make requested changes Signed-off-by: Andrew Ferrazzutti <fair@miscworks.net>
This commit is contained in:
@@ -92,7 +92,9 @@ export class Jitsi {
|
||||
const parsed = new URL(url);
|
||||
if (parsed.hostname !== this.preferredDomain) return null; // invalid
|
||||
return {
|
||||
conferenceId: parsed.pathname,
|
||||
// URL pathnames always contain a leading slash.
|
||||
// Remove it to be left with just the conference name.
|
||||
conferenceId: parsed.pathname.substring(1),
|
||||
domain: parsed.hostname,
|
||||
isAudioOnly: false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user