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

Not work well with scroll-to-element #103

Open
haovoanh28 opened this issue May 17, 2021 · 0 comments
Open

Not work well with scroll-to-element #103

haovoanh28 opened this issue May 17, 2021 · 0 comments

Comments

@haovoanh28
Copy link

I'm currently have an issue with scrolling-to-element.
My website has 2 routes : ' / #someSectionId' and ' /blog ' and both shared the same Header component.
If I'm on root route ( '/' ) at initial , everything works fine. But if I'm on ( '/blog' ) at initial, when I click arbitrary links in Header component to go to some section on home page, the url actually displays #someSectionId but then immediately redierct to #home.
I can temporarily fix this by set the default min-height for each section, but this obviously not a good idea. So I'm looking for a better solution.

Sorry for my bad English.

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

1 participant