Skip to content

Commit d2f278a

Browse files
authored
fix: open docs links in the same tab closes #6927 (#6936)
* fix: open docs links in the same tab closes #6927 * fix: update link display logic instead of the href
1 parent b74fef4 commit d2f278a

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

apps/site/components/Containers/NavBar/NavItem/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ const NavItem: FC<PropsWithChildren<NavItemProps>> = ({
3131
>
3232
<span className={styles.label}>{children}</span>
3333

34-
{((type === 'nav' && href.startsWith('http')) || target === '_blank') && (
35-
<ArrowUpRightIcon className={styles.icon} />
36-
)}
34+
{target === '_blank' && <ArrowUpRightIcon className={styles.icon} />}
3735
</ActiveLink>
3836
);
3937

apps/site/navigation.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
},
1919
"docs": {
2020
"link": "https://nodejs.org/docs/latest/api/",
21-
"label": "components.containers.navBar.links.docs",
22-
"target": "_blank"
21+
"label": "components.containers.navBar.links.docs"
2322
},
2423
"certification": {
2524
"link": "https://training.linuxfoundation.org/openjs/",

0 commit comments

Comments
 (0)