Sidebar group headings can be linked. If a sidebar group is linked, visiting the page it's linked to will uncollapse the group. The effect is unexpected and can result in undesired uncollapsings.
Reproduction
With the released version, replace docs/.vitepress/config/en.ts's sidebarGuide with the following.
### Additional context
_No response_
### Validations
- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).
- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)
- [X] Read the [docs](https://vitepress.dev).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Describe the bug
Sidebar group headings can be linked. If a sidebar group is linked, visiting the page it's linked to will uncollapse the group. The effect is unexpected and can result in undesired uncollapsings.
Reproduction
docs/.vitepress/config/en.ts
'ssidebarGuide
with the following.pnpm run docs
http://localhost:<your port>/guide/routing
in a browserExpected behavior
Clicking a sidebar group's linked heading opens the link without toggling the group.
System Info