Skip to content

Inconsistent behavior when browsing pages #1016

Closed
@ghost

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions