From 3f4e969810d567b5ff41e065a8625ccb26da4d68 Mon Sep 17 00:00:00 2001
From: Ben Wheeler <wheeler.benjamin@gmail.com>
Date: Wed, 19 Dec 2018 08:30:09 -0500
Subject: [PATCH] push history on modal mount, if current history ref is not
 this same component id

---
 src/containers/modal.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/containers/modal.jsx b/src/containers/modal.jsx
index 30dc4277b..7aa7571a5 100644
--- a/src/containers/modal.jsx
+++ b/src/containers/modal.jsx
@@ -19,7 +19,7 @@ class Modal extends React.Component {
     componentDidMount () {
         // Add a history event only if it's not currently for our modal. This
         // avoids polluting the history with many entries. We only need one.
-        this.pushHistory(this.id, history.state === null);
+        this.pushHistory(this.id, (history.state === null || history.state !== this.id));
     }
     componentWillUnmount () {
         this.removeEventListeners();
-- 
GitLab