vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.43k stars 4.79k forks source link

[bug] Incorrect next and previous anchoring #3214

Open devinmarieb opened 2 months ago

devinmarieb commented 2 months ago

Bug report

Next and previous links don't anchor to the top of the page every time. They often link to the bottom or middle of the page. Sometimes they do anchor to the top of the page, but cut off the header and anchor to the beginning of the main text. The header is important and should be displayed.

Steps to reproduce

Visit the main VuePress docs site and use the next and previous links. The bug exists here.

What is expected?

The next and previous links anchor to the very top of the next or previous page, including the first page header.

What is actually happening?

The next and previous links are anchoring to random places on the next or previous page - usually toward the bottom.

Other relevant information

Adityamaurya123uma commented 2 months ago

@devinmarieb Hello, I hope you're doing well!

Is this issue still open? I just checked the official website and didn't encounter the bug. Has it already been fixed or am I testing it wrong?

Here is a videolink for reference.

devinmarieb commented 2 months ago

@Adityamaurya123uma It does seem to be fixed in Brave and Chrome, but is still broken in Firefox. I mostly use Brave and Firefox and it was inconsistent in both when I opened this ticket (for context, it was broken 4 out of the 5 times I just tried it in Firefox just now).