Fix opening modals losing some location parameters (#33670)

pull/24125/merge
Claire 1 month ago committed by GitHub
parent 9e90248abc
commit 4ebdfed8ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -118,9 +118,9 @@ class ModalRoot extends PureComponent {
}
_ensureHistoryBuffer () {
const { pathname, state } = this.history.location;
const { pathname, search, hash, state } = this.history.location;
if (!state || state.mastodonModalKey !== this._modalHistoryKey) {
this.history.push(pathname, { ...state, mastodonModalKey: this._modalHistoryKey });
this.history.push({ pathname, search, hash }, { ...state, mastodonModalKey: this._modalHistoryKey });
}
}

Loading…
Cancel
Save