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(info): always remove last part of path for meeting name

Leonard Kim80bdf908ca98
diff --git a/react/features/invite/components/info-dialog/InfoDialog.web.js b/react/features/invite/components/info-dialog/InfoDialog.web.js
index e240c53d76..7682eb948b 100644
--- a/react/features/invite/components/info-dialog/InfoDialog.web.js
+++ b/react/features/invite/components/info-dialog/InfoDialog.web.js
@@ -273,13 +273,7 @@ class InfoDialog extends Component {
= encodeURIComponent(this.props._conferenceName);
const pathParts = window.location.pathname.split('/');
- // More than two parts implies the path consists of more than the first
- // forward slash and the meeting name. If that is the case, drop the
- // last segment of the path, which we assume is the meeting name. This
- // is necessary when is hosted on a url with a path.
- if (pathParts.length > 2) {
- pathParts.length = pathParts.length - 1;
- }
+ pathParts.length = pathParts.length - 1;
const newPath = pathParts.reduce((accumulator, currentValue) => {
if (currentValue) {