-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
Description
Describe the bug
When opening link from "Copy link to highlight", the viewport does not scroll to the highlighted text. I tested this issue on several browsers:
- Chromium (Linux) = yes, does not scroll.
- Vivaldi (Linux) = yes, does not scroll.
- Safari (iOS 18) = yes, does not scroll.
- Firefox (Linux) = no, works as expected.
- Zen (Linux) = no, works as expected.
Reproduction
- Restart browser
- Open link from "Copy link to highlight", such as:
Expected behavior
The text is scrolled into view and highlighted with color.
System Info
System:
OS: Linux 6.12 Arch Linux
CPU: (8) x64 Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
Memory: 10.74 GB / 15.44 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 25.2.1 - /usr/bin/node
npm: 11.7.0 - /usr/bin/npm
pnpm: 10.25.0 - /usr/bin/pnpm
Deno: 2.6.2 - /usr/bin/deno
Browsers:
Chromium: 143.0.7499.192
Firefox: 146.0.1
Firefox Developer Edition: 146.0.1
Additional context
Reproduction video
vitepress-link-issue.mp4
Validations
- Check if you're on the latest VitePress version.
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.