Skip to content

Commit

Permalink
Updating rel for all external links
Browse files Browse the repository at this point in the history
  • Loading branch information
GordonBeeming committed Oct 29, 2023
1 parent d6672bd commit 5e9aa20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/GordonBeemingCom/wwwroot/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ $(document).ready(function () {
// Change the href to redirect to the local page /external with the encoded original link as a query string
this.href = "/external?link=" + encodedLink;
this.target = "_blank"
this.rel = "nofollow noopener external noreferrer"
if (this.title.length > 0) {
this.title = this.title + " | This is an external link, and will open in a new tab.";
} else {
Expand Down

0 comments on commit 5e9aa20

Please sign in to comment.