mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-03-18 01:10:46 -04:00
[Glitch] Fix opening modals losing some location parameters
Port 4ebdfed8ea7d16d203da73051ef26bbcdeb63681 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
ce7fb94306
commit
785543b5a6
@ -123,9 +123,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…
x
Reference in New Issue
Block a user