Skip to content

No external icon for _blank links in sidebar #3327

@Chocobozzz

Description

@Chocobozzz

Describe the bug

If using target: '_blank' for sidebar item, there is no icons indicating we leave the page

Reproduction

Create an external link in the sidebar:

"sidebar": {
    "/": {
      "text": "API",
      "items": [{ "text": "REST API reference", "link": "/api-rest-reference.html", "target": "_blank" }]
    }
  }

Expected behavior

Have an external link icon, like we had with pathname://...

System Info

vitepress v1.0.0-rc.31

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    stalethemeRelated to the theme

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions