Bläddra i källkod

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

master
Leonard Kim 7 år sedan
förälder
incheckning
80bdf908ca
1 ändrade filer med 1 tillägg och 7 borttagningar
  1. 1
    7
      react/features/invite/components/info-dialog/InfoDialog.web.js

+ 1
- 7
react/features/invite/components/info-dialog/InfoDialog.web.js Visa fil

@@ -273,13 +273,7 @@ class InfoDialog extends Component {
273 273
             = encodeURIComponent(this.props._conferenceName);
274 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 278
         const newPath = pathParts.reduce((accumulator, currentValue) => {
285 279
             if (currentValue) {

Laddar…
Avbryt
Spara