Skip to content

Commit

Permalink
Update to replaceState to have better user experiance
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomm1128 committed Dec 18, 2024
1 parent 6733989 commit 40ee674
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const VisualGuidelines = ({

default:
if (window.location.pathname !== "/visual_guidelines/colors") {
window.history.pushState(null, "", "/visual_guidelines/colors");
window.history.replaceState(null, "", "/visual_guidelines/colors");
}
return <Colors />;
}
Expand Down

0 comments on commit 40ee674

Please sign in to comment.