You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have VitePress installed at /docs/ and I would like to have a clickable item pointing to /other-dir/ from the navigation menu (config.js -> themeConfig -> nav []). However, when setting target: '_self', the a href stop working. I believe that the function catching those clicks is triggering but confused that:
The url is on the same website
It is outside of the urls VitePress knows about, so it thinks those don't exist
When changing the target url from website.com/other-dir/ to another-website.com, target: '_self' works just fine.
Reproduction
Install VitePress in a subdirectory and try to reach outside of the install directory, but on the same domain, without using _blank.
@brc-dd I tried using class="vp-raw", which can indeed bypass click handler. However, in the production environment, this will load some non-existent JavaScript files. Is there any solution to this?
Describe the bug
I have VitePress installed at /docs/ and I would like to have a clickable item pointing to /other-dir/ from the navigation menu (config.js -> themeConfig -> nav []). However, when setting
target: '_self'
, the a href stop working. I believe that the function catching those clicks is triggering but confused that:When changing the target url from website.com/other-dir/ to another-website.com,
target: '_self'
works just fine.Reproduction
Install VitePress in a subdirectory and try to reach outside of the install directory, but on the same domain, without using
_blank
.Expected behavior
_self
shouldn't crash a href.System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: