Browse Source

fix(info): always remove last part of path for meeting name

master
Leonard Kim 7 years ago
parent
commit
80bdf908ca
1 changed files with 1 additions and 7 deletions
  1. 1
    7
      react/features/invite/components/info-dialog/InfoDialog.web.js

+ 1
- 7
react/features/invite/components/info-dialog/InfoDialog.web.js View File

273
             = encodeURIComponent(this.props._conferenceName);
273
             = encodeURIComponent(this.props._conferenceName);
274
         const pathParts = window.location.pathname.split('/');
274
         const pathParts = window.location.pathname.split('/');
275
 
275
 
276
-        // More than two parts implies the path consists of more than the first
277
-        // forward slash and the meeting name. If that is the case, drop the
278
-        // last segment of the path, which we assume is the meeting name. This
279
-        // is necessary when is hosted on a url with a path.
280
-        if (pathParts.length > 2) {
281
-            pathParts.length = pathParts.length - 1;
282
-        }
276
+        pathParts.length = pathParts.length - 1;
283
 
277
 
284
         const newPath = pathParts.reduce((accumulator, currentValue) => {
278
         const newPath = pathParts.reduce((accumulator, currentValue) => {
285
             if (currentValue) {
279
             if (currentValue) {

Loading…
Cancel
Save