From 3c3385ee34eddf2bf23b47152f169cef777463a1 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Fri, 9 Apr 2021 16:44:35 -0500 Subject: [PATCH] Use null instead of empty string In legacy edge, empty string resets the URL's hash --- 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 65be16216..5f9fd1ea3 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, null); + history.replaceState(state, this.id, null); } render () { return ;