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(dial-in): specify url root for more numbers link

Leonard Kimb00aaf1de735
diff --git a/react/features/invite/components/info-dialog/InfoDialog.web.js b/react/features/invite/components/info-dialog/InfoDialog.web.js
index 067e01e520..02a54ae4c9 100644
--- a/react/features/invite/components/info-dialog/InfoDialog.web.js
+++ b/react/features/invite/components/info-dialog/InfoDialog.web.js
@@ -261,6 +261,17 @@ class InfoDialog extends Component {
return null;
}
+ /**
+ * Generates the URL for the static dial in info page.
+ *
+ * @private
+ * @returns {string}
+ */
+ _getDialInfoPageURL() {
+ return `${window.location.origin}/static/dialInInfo.html?room=${
+ encodeURIComponent(this.props._conferenceName)}`;
+ }
+
/**
* Creates a message describing how to dial in to the conference.
*
@@ -268,7 +279,7 @@ class InfoDialog extends Component {
* @returns {string}
*/
_getTextToCopy() {
- const { _conferenceName, t } = this.props;
+ const { t } = this.props;
let invite = t('info.inviteURL', {
url: this.props._inviteURL
@@ -280,8 +291,7 @@ class InfoDialog extends Component {
conferenceID: this.props._dialIn.conferenceID
});
const moreNumbers = t('info.invitePhoneAlternatives', {
- url: `${window.location.origin}/static/dialInInfo.html?room=${
- encodeURIComponent(_conferenceName)}`
+ url: this._getDialInfoPageURL()
});
invite = `${invite}\n${dial}\n${moreNumbers}`;
@@ -377,8 +387,7 @@ class InfoDialog extends Component {
phoneNumber = { this.state.phoneNumber } />
<a
className = 'more-numbers'
- href = { `static/dialInInfo.html?room=${
- encodeURIComponent(this.props._conferenceName)}` }
+ href = { this._getDialInfoPageURL() }
rel = 'noopener noreferrer'
target = '_blank'>
{ this.props.t('info.moreNumbers') }