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

Scroll position lost when navigating #19

Open
dandv opened this issue Aug 9, 2023 · 1 comment
Open

Scroll position lost when navigating #19

dandv opened this issue Aug 9, 2023 · 1 comment

Comments

@dandv
Copy link

dandv commented Aug 9, 2023

Thanks for the really nice theme!

Is there any way to remember the scroll position when navigating back to the homepage?

  1. Go to https://hellotham.github.io/hello-astro/
  2. Scroll down and click on tags
  3. Press the browser back button.

The page will be scrolled back to the top, instead of remembering the scroll position.

Firefox 116.0 (64-bit).

@ChristineTham
Copy link
Collaborator

Hello, thanks for your feedback.

One option you can try is to remove the following line from src/layouts/base.astro:

    <ViewTransitions />

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