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);
|
||||
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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue