Skip to content

Commit

Permalink
fix(front): redirect to home page when back button is clicked on erro…
Browse files Browse the repository at this point in the history
…r page (#36)
  • Loading branch information
rebeccadumazert authored Sep 25, 2024
1 parent e61ca6d commit 6f33d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pages/NotFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function NotFound() {
Nous n'arrivons pas à trouver la page que vous souhaitez afficher.
</p>

<Button onClick={() => navigate(-1)}>Retour</Button>
<Button onClick={() => navigate("/")}>Retour</Button>
</div>
<div className="fr-col-6 centered-content">
<img src={ConnectionLost} alt="" />
Expand Down

0 comments on commit 6f33d07

Please sign in to comment.