Skip to content

Commit

Permalink
Use router.replace so the autolaunched instant launch page doesn't re…
Browse files Browse the repository at this point in the history
…main in history
  • Loading branch information
ianmcorvidae committed Oct 14, 2024
1 parent 89e8c11 commit 656e2f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/instantlaunches/InstantLaunchButtonWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ function InstantLaunchButtonWrapper(props) {
setOpen(false);
}
if (autolaunch) {
// go to the analysis landing
router.push(
// go to the analysis landing, not keeping this page in browser history
router.replace(
`/${NavigationConstants.ANALYSES}/${analysis?.id}`
);
}
Expand Down

0 comments on commit 656e2f2

Please sign in to comment.