mirror of https://github.com/vector-im/riot-web
Merge pull request #2079 from matrix-org/dbkr/make_jitsi_actually_persist
Fix widgets resetting when going to the top-leftpull/21833/head
commit
4e9f6441a3
|
@ -117,8 +117,9 @@ export default class AppTile extends React.Component {
|
||||||
const params = qs.parse(u.query);
|
const params = qs.parse(u.query);
|
||||||
// Append widget ID to query parameters
|
// Append widget ID to query parameters
|
||||||
params.widgetId = this.props.id;
|
params.widgetId = this.props.id;
|
||||||
// Append current / parent URL
|
// Append current / parent URL, minus the hash because that will change when
|
||||||
params.parentUrl = window.location.href;
|
// we view a different room (ie. may change for persistent widgets)
|
||||||
|
params.parentUrl = window.location.href.split('#', 2)[0];
|
||||||
u.search = undefined;
|
u.search = undefined;
|
||||||
u.query = params;
|
u.query = params;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue