Skip to content

Commit 1050ed4

Browse files
Update external link to open in new tab
Add target and rel attributes to external links for security.
1 parent f4ec274 commit 1050ed4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/DocsLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export function DocsLayout({
219219
return (
220220
<li key={i}>
221221
{child.to.startsWith('http') ? (
222-
<a href={child.to} className={linkClasses}>
222+
<a href={child.to} className={linkClasses} target="_blank" rel="noopener noreferrer">
223223
{child.label}
224224
</a>
225225
) : (

0 commit comments

Comments
 (0)