Skip to content

Commit

Permalink
inbox history back button
Browse files Browse the repository at this point in the history
  • Loading branch information
hppanpaliya committed Aug 26, 2023
1 parent 6748302 commit 4b3f566
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/src/components/Inbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const Inbox = () => {

useEffect(() => {
if (lastEmail) {
navigate(`/inbox/${lastEmail}`);

navigate(`/inbox/${lastEmail}`, { replace: true }); // By using "replace" to effectively delete '/inbox' from the history stack
}

}, [lastEmail, navigate]);


Expand Down

0 comments on commit 4b3f566

Please sign in to comment.