Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby-link): replace current path in history rather than pushing it #23380

Closed
wants to merge 1 commit into from
Closed

fix(gatsby-link): replace current path in history rather than pushing it #23380

wants to merge 1 commit into from

Commits on Apr 23, 2020

  1. fix(gatsby-link): replace current path in history rather than pushing…

    … itFixes #22124If the developer didn't explicitly set the "replace" prop and we're onthe page that we're about to navigate to,force "replace" to truewhen navigating.This fixes a bug where clicking a link that does not result innavigating to another page incorrectlyadds an history entry.Using the same technique as @reach/router
    abarisain committed Apr 23, 2020
    Configuration menu
    Copy the full SHA
    48b3fa6 View commit details
    Browse the repository at this point in the history