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

[bug]: 页内标题锚点通过浏览器的后退、前进功能切换时,文章内容不会定位至标题锚点所在位置 #695

Open
kanslor opened this issue Oct 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kanslor
Copy link

kanslor commented Oct 13, 2023

问题描述

使用该主题生成的文档网站在浏览时,如果定位了某个页内锚点,接下去定位了另一个锚点,通过浏览器的后退返回至上一个带锚点的链接,网页不会自动定位至这个锚点所在的位置。

重现步骤

此问题可在https://doc.xugaoyi.com/ 中,根据以下步骤复现:

  1. 打开使用vuepress-theme-vdoing 主题的页面,定位至某篇文章的任意一个标题锚点
  2. 在这篇文章中,找到另外一个标题,并定位至这个标题的锚点。
  3. 使用浏览器的后退按钮,返回至上一个标题锚点的链接

补充说明(可选)

vuepress的锚点链接测试过,按照上述步骤可以定位至目标标题锚点。

@kanslor kanslor added the bug Something isn't working label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant