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

Access to history (to createa a back button) in createPage? #10057

Closed
hassanshaikley opened this issue Nov 21, 2018 · 1 comment
Closed

Access to history (to createa a back button) in createPage? #10057

hassanshaikley opened this issue Nov 21, 2018 · 1 comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@hassanshaikley
Copy link

I am trying to create a back button in a plugin created page. (A page made with createPage)

Not sure how to access the history prop and make a back button though.. ):

@hassanshaikley hassanshaikley changed the title Access to history in createPage? Access to history (to createa a back button) in createPage? Nov 21, 2018
@pieh
Copy link
Contributor

pieh commented Nov 21, 2018

You should be able to use default browser window.history.back()

@pieh pieh added the type: question or discussion Issue discussing or asking a question about Gatsby label Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants