Skip to content

Commit 05f0e64

Browse files
authored
fix(web): add noopener and noreferrer to external source links (#771)
1 parent f1c1c9c commit 05f0e64

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/generators/jsx-ast/utils/buildContent.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export const createSourceLink = sourceLink => {
9090
{
9191
href: `${populate(GITHUB_BLOB_URL, config)}${sourceLink}`,
9292
target: '_blank',
93+
rel: 'noopener noreferrer',
9394
},
9495
[
9596
sourceLink,

0 commit comments

Comments
 (0)