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

This commit is contained in:
Leonard Kim 2018-03-06 12:55:45 -08:00 committed by Дамян Минков
parent 0d3b4eedf8
commit 80bdf908ca
1 changed files with 1 additions and 7 deletions

View File

@ -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;
}
const newPath = pathParts.reduce((accumulator, currentValue) => {
if (currentValue) {