DEV Community

loading...

browser back button takes to bottom of the page instead of previous location

gurupal profile image Gurupal Singh ・1 min read

I have one product listing page with infinite scroll pagination. Whenever i click on any of the product and goto product detail page and then press browser back button, it will takes me to bottom of the page instead of where i was. What should i do to retain by old state ?

gatsby version 2.19.18

Discussion (0)

pic
Editor guide