Skip to content

Commit 6cbf2a2

Browse files
authored
[Docs site] Sidebar open external links in new tab (#25428)
1 parent 7313754 commit 6cbf2a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/sidebar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ async function handleLink(link: Link): Promise<Link> {
298298
}
299299
: link.badge,
300300
attrs: {
301+
target: "_blank",
301302
"data-external-link": true,
302303
},
303304
};

0 commit comments

Comments
 (0)