diff --git a/packages/gatsby-link/src/index.js b/packages/gatsby-link/src/index.js index 413d5139e96d6..a910ff7b18d6d 100644 --- a/packages/gatsby-link/src/index.js +++ b/packages/gatsby-link/src/index.js @@ -149,6 +149,7 @@ class GatsbyLink extends React.Component { // This is just a normal link to the current page so let's emulate default // browser behavior by scrolling now to the top of the page. window.scrollTo(0, 0) + document.querySelector(`#___gatsby`).focus() return true } }