You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/gatsby-link.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -249,6 +249,8 @@ const Form = () => (
249
249
)
250
250
```
251
251
252
+
Then from the receiving page you can access the `location` state as demonstrated in [Pass state as props to the linked page](#pass-state-as-props-to-the-linked-page).
253
+
252
254
### Replace history during programmatic navigation
253
255
254
256
If the navigation should replace history instead of pushing a new entry into the navigation history, add the `replace` prop with a value of `true` to the `options` argument of `navigate`.
@@ -390,4 +392,5 @@ onClick = () => {
390
392
## Additional resources
391
393
392
394
-[Authentication tutorial for client-only routes](/tutorial/authentication-tutorial/)
395
+
-[Routing: Getting Location Data from Props](/docs/location-data-from-props/)
393
396
-[`gatsby-plugin-catch-links`](https://www.gatsbyjs.org/packages/gatsby-plugin-catch-links/) to automatically intercept local links in Markdown files for `gatsby-link` like behavior
0 commit comments