From c4970a014efb545cf789f09203a0880bc1bf67fe Mon Sep 17 00:00:00 2001 From: leonardosfl Date: Fri, 7 Aug 2020 10:19:18 -0300 Subject: [PATCH] Delete only the identifier param instead of everything. --- src/components/new-preprint.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/new-preprint.js b/src/components/new-preprint.js index 0ab7e4d..217d87e 100644 --- a/src/components/new-preprint.js +++ b/src/components/new-preprint.js @@ -214,7 +214,8 @@ function StepPreprint({ if (location.search) { const qs = new URLSearchParams(location.search); if (qs.get('identifier')) { - history.replace('/new'); + qs.delete('identifier'); + history.replace({ pathname: location.pathname, search: qs.toString() }); } }