vue-lazy-hydration
vue-lazy-hydration copied to clipboard
Not work well with scroll-to-element
trafficstars
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.
- Github repo: https://github.com/haovoanh28/portfolio-v2