Skip to content

Commit 114ba58

Browse files
committed
fix: open API reference link in new tab
1 parent 03593a4 commit 114ba58

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/layouts/default.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ function closeMobileMenu() {
9696
</NavigationMenuItem>
9797
<NavigationMenuItem>
9898
<NavigationMenuLink as-child>
99-
<a href="/_docs/scalar">
99+
<a
100+
href="/_docs/scalar"
101+
target="_blank"
102+
rel="noopener noreferrer"
103+
>
100104
{{ $t('layouts.links.api_reference') }}
101105
</a>
102106
</NavigationMenuLink>
@@ -184,6 +188,8 @@ function closeMobileMenu() {
184188
</a>
185189
<a
186190
href="/_docs/scalar"
191+
target="_blank"
192+
rel="noopener noreferrer"
187193
class="
188194
flex min-h-11 items-center rounded-xl px-3 text-sm
189195
font-medium text-muted-foreground transition-colors

0 commit comments

Comments
 (0)