From de15e68e790758fbfdf7aecf8b2ed49fd49bae51 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Thu, 8 Apr 2021 19:34:09 -0500 Subject: [PATCH] Explicitly pass empty string into pushState and replaceState Legacy edge appears to interpet a missing third parameter as the string "undefined" Brilliant. --- src/containers/modal.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/modal.jsx b/src/containers/modal.jsx index 7aa7571a5..65be16216 100644 --- a/src/containers/modal.jsx +++ b/src/containers/modal.jsx @@ -38,8 +38,8 @@ class Modal extends React.Component { return `modal-${this.props.id}`; } pushHistory (state, push) { - if (push) return history.pushState(state, this.id); - history.replaceState(state, this.id); + if (push) return history.pushState(state, this.id, ''); + history.replaceState(state, this.id, ''); } render () { return ;