Skip to content

Commit

Permalink
update referrer policy for hyperlinks (#1922)
Browse files Browse the repository at this point in the history
* update referrer policy for hyperlinks

* test policy

* remove ref policy as global header has it

* remove ref policy for media hyperlinks
  • Loading branch information
harishv7 authored Aug 21, 2024
1 parent 9320b71 commit a8572e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/EditPage/EditPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const EditPage = () => {
.chain()
.focus()
.insertContent(
`<a target="_blank" rel="noopener noreferrer nofollow" href="${href}">${text}</a>`
`<a target="_blank" rel="noopener nofollow" href="${href}">${text}</a>`
)
.run()
onHyperlinkModalClose()
Expand Down Expand Up @@ -210,7 +210,7 @@ export const EditPage = () => {
.chain()
.focus()
.insertContent(
`<a target="_blank" rel="noopener noreferrer nofollow" href="${selectedMediaPath}">${
`<a target="_blank" rel="noopener nofollow" href="${selectedMediaPath}">${
altText || "file"
}</a>`
)
Expand Down

0 comments on commit a8572e5

Please sign in to comment.