Use URL without wurl params for popout

The popout can't be assumed to have the widget API available, so
just leave these params out.
pull/21833/head
David Baker 2020-04-01 11:18:45 +01:00
parent 274eb75c38
commit a2f92e93a7
1 changed files with 4 additions and 4 deletions

View File

@ -583,17 +583,17 @@ export default class AppTile extends React.Component {
url = WidgetUtils.getLocalJitsiWrapperUrl({forLocalRender: true}); url = WidgetUtils.getLocalJitsiWrapperUrl({forLocalRender: true});
url = this._addWurlParams(url); url = this._addWurlParams(url);
} else { } else {
url = this._getSafeUrl(); url = this._getSafeUrl(this.state.widgetUrl);
} }
return this._templatedUrl(url); return this._templatedUrl(url);
} }
_getPopoutUrl() { _getPopoutUrl() {
return this._templatedUrl(this._getSafeUrl()); return this._templatedUrl(this._getSafeUrl(this.props.app.url));
} }
_getSafeUrl() { _getSafeUrl(u) {
const parsedWidgetUrl = url.parse(this.state.widgetUrl, true); const parsedWidgetUrl = url.parse(u, true);
if (ENABLE_REACT_PERF) { if (ENABLE_REACT_PERF) {
parsedWidgetUrl.search = null; parsedWidgetUrl.search = null;
parsedWidgetUrl.query.react_perf = true; parsedWidgetUrl.query.react_perf = true;