Skip to content

Commit 0cc6e58

Browse files
committed
Sidebar links no longer open in a new tab, closes #2353.
1 parent 3207ae5 commit 0cc6e58

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
- Fixed duplicate namespace in documentation if `@namespace` is used on a variable with an associated namespace, #2364.
3030
- Fixed `@namespace` property discovery if merged with a type and the type was declared first #2364.
3131
- Tables in markdown are now styled, #2366.
32+
- Sidebar links no longer open in a new tab, #2353.
3233
- Symbol locations for signatures on `reflection.sources` now considers the node's name like non-signature location discovery does.
3334

3435
### Thanks!

src/lib/output/themes/default/partials/navigation.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ export function sidebarLinks(context: DefaultThemeRenderContext) {
3838
return (
3939
<nav id="tsd-sidebar-links" class="tsd-navigation">
4040
{links.map(([label, url]) => (
41-
<a href={url} target="_blank">
42-
{label}
43-
</a>
41+
<a href={url}>{label}</a>
4442
))}
4543
</nav>
4644
);

0 commit comments

Comments
 (0)