Merge pull request #2079 from matrix-org/dbkr/make_jitsi_actually_persist

Fix widgets resetting when going to the top-left
pull/21833/head
Bruno Windels 2018-07-23 15:31:12 +02:00 committed by GitHub
commit 4e9f6441a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -117,8 +117,9 @@ export default class AppTile extends React.Component {
const params = qs.parse(u.query);
// Append widget ID to query parameters
params.widgetId = this.props.id;
// Append current / parent URL
params.parentUrl = window.location.href;
// Append current / parent URL, minus the hash because that will change when
// we view a different room (ie. may change for persistent widgets)
params.parentUrl = window.location.href.split('#', 2)[0];
u.search = undefined;
u.query = params;