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

Remember scroll position when navigating back from the detail view to the main page #16

Open
docmattman opened this issue Oct 26, 2022 · 1 comment

Comments

@docmattman
Copy link

Would it be possible to add the code to remember the scroll position when navigating back to the home page after viewing a detail page? Right now, when you scroll down on the home page, find a movie, click it to view details, then use the back button, it brings you back to the top of the home page instead of where you left off.

This is something I'm struggling with in my own nuxt3 project and would love to see how it can be done properly.

@moHaHa
Copy link

moHaHa commented Oct 28, 2022

I notes that when I was on the search page
I open search
-> type any words like "house"
-> scroll
-> click on any move
-> movie page load
-> click "go back" button (to back to the search page)

  • in seach page it will keep the word you search for but the scroll will gose to the top

ali4zimi added a commit to ali4zimi/movies that referenced this issue Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants