mirror of https://github.com/vector-im/riot-web
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>pull/21833/head
parent
925136d016
commit
a8a34ea756
|
@ -92,7 +92,9 @@ export class Jitsi {
|
||||||
const parsed = new URL(url);
|
const parsed = new URL(url);
|
||||||
if (parsed.hostname !== this.preferredDomain) return null; // invalid
|
if (parsed.hostname !== this.preferredDomain) return null; // invalid
|
||||||
return {
|
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,
|
domain: parsed.hostname,
|
||||||
isAudioOnly: false,
|
isAudioOnly: false,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue