Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Delete only the identifier param instead of everything.
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardosfl committed Aug 7, 2020
1 parent 9e73955 commit c4970a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/new-preprint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() });
}
}

Expand Down

0 comments on commit c4970a0

Please sign in to comment.