vitepress
vitepress copied to clipboard
nav support target: '_self'
Is your feature request related to a problem? Please describe.
currently, when nav link is for example, https://github.com, it opens a new tab
Describe the solution you'd like
in some cases, we want the link to be opened at the same tab, so something like:
nav: [ { text: 'Configs', link: 'https://github.com', target: '_self' } ]
Describe alternatives you've considered
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Read the Contributing Guidelines.
- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
This should work for now: https://github.com/vuejs/vitepress/discussions/1015#discussioncomment-3177860
fixed in #1993