
Description
- I confirm that this is a issue rather than a question.
Bug report
Sometimes the links from the search results will not take you to the relevant header but to some other arbitrary position on the result page (often the end of the page). I don't know what triggers this inconsistency but you can reproduce it on vuepress.vuejs.org.
Steps to reproduce
As I don't know the exact repro case, all I can tell is to use the search box from different places on the site and observe the behavior when jumping to a search result item. For example, browse to vuepress.vuejs.org/plugin/, scroll a bit down and enter "algo" in the search box. Hitting enter takes me to "Popup UI to refresh contents", while "Default theme config" is highlighted in the sidebar - although the URL refers to the correct anchor. Refreshing the page takes me to the correct position.
The expected behavior in the above example would be to jump to the anchor algolia-search
Really hope you can fix this as I would love ot use vuepress!
- OS: Ubuntu 18.04
- Browser version: Firefox 63.0 without extensions.