vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

nav support target: '_self'

Open lancemao opened this issue 3 years ago • 1 comments

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

lancemao avatar Aug 19 '22 10:08 lancemao

This should work for now: https://github.com/vuejs/vitepress/discussions/1015#discussioncomment-3177860

brc-dd avatar Aug 19 '22 14:08 brc-dd

fixed in #1993

brc-dd avatar Mar 10 '23 09:03 brc-dd