diff --git a/app/soapbox/components/modal_root.js b/app/soapbox/components/modal_root.js index 9cda3b890..99b6b1c0e 100644 --- a/app/soapbox/components/modal_root.js +++ b/app/soapbox/components/modal_root.js @@ -161,7 +161,7 @@ class ModalRoot extends React.PureComponent { if (this.unlistenHistory) { this.unlistenHistory(); } - if (!['FAVOURITES', 'MENTIONS', 'REACTIONS', 'REBLOGS'].includes(type)) { + if (!['FAVOURITES', 'MENTIONS', 'REACTIONS', 'REBLOGS', 'MEDIA'].includes(type)) { const { state } = this.history.location; if (state && state.soapboxModalKey === this._modalHistoryKey) { this.history.goBack();