-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gatsby-link): replace current path in history rather than pushing…
… it (#23414) Fixes #22124 If the developer didn't explicitly set the "replace" prop and we're on the page that we're about to navigate to, force "replace" to true when navigating. This fixes a bug where clicking a link that does not result in navigating to another page incorrectly adds an history entry. Uses the same technique as @reach/router
- Loading branch information
Showing
2 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters