Pārlūkot izejas kodu

fix(dial-in): specify url root for more numbers link

This gets around the issue of a cdn page being opened.
master
Leonard Kim 7 gadus atpakaļ
vecāks
revīzija
b00aaf1de7

+ 14
- 5
react/features/invite/components/info-dialog/InfoDialog.web.js Parādīt failu

@@ -261,6 +261,17 @@ class InfoDialog extends Component {
261 261
         return null;
262 262
     }
263 263
 
264
+    /**
265
+     * Generates the URL for the static dial in info page.
266
+     *
267
+     * @private
268
+     * @returns {string}
269
+     */
270
+    _getDialInfoPageURL() {
271
+        return `${window.location.origin}/static/dialInInfo.html?room=${
272
+            encodeURIComponent(this.props._conferenceName)}`;
273
+    }
274
+
264 275
     /**
265 276
      * Creates a message describing how to dial in to the conference.
266 277
      *
@@ -268,7 +279,7 @@ class InfoDialog extends Component {
268 279
      * @returns {string}
269 280
      */
270 281
     _getTextToCopy() {
271
-        const { _conferenceName, t } = this.props;
282
+        const { t } = this.props;
272 283
 
273 284
         let invite = t('info.inviteURL', {
274 285
             url: this.props._inviteURL
@@ -280,8 +291,7 @@ class InfoDialog extends Component {
280 291
                 conferenceID: this.props._dialIn.conferenceID
281 292
             });
282 293
             const moreNumbers = t('info.invitePhoneAlternatives', {
283
-                url: `${window.location.origin}/static/dialInInfo.html?room=${
284
-                    encodeURIComponent(_conferenceName)}`
294
+                url: this._getDialInfoPageURL()
285 295
             });
286 296
 
287 297
             invite = `${invite}\n${dial}\n${moreNumbers}`;
@@ -377,8 +387,7 @@ class InfoDialog extends Component {
377 387
                     phoneNumber = { this.state.phoneNumber } />
378 388
                 <a
379 389
                     className = 'more-numbers'
380
-                    href = { `static/dialInInfo.html?room=${
381
-                        encodeURIComponent(this.props._conferenceName)}` }
390
+                    href = { this._getDialInfoPageURL() }
382 391
                     rel = 'noopener noreferrer'
383 392
                     target = '_blank'>
384 393
                     { this.props.t('info.moreNumbers') }

Notiek ielāde…
Atcelt
Saglabāt