Skip to content

Commit

Permalink
fix(seo): add rel="nofollow" on "Sign up" link
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed May 30, 2024
1 parent e04081a commit b7b40f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/ui/atoms/signup-link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ export const SignUpLink = ({ toPlans = false, gleanContext = "" }) => {

const href = toPlans ? plansUrl : loginUrl;
const label = toPlans ? "Upgrade Now" : "Sign up for free";
const rel = toPlans ? undefined : "nofollow";

return (
<Button
href={href}
target="_self"
extraClasses="mdn-plus-subscribe-link"
onClickHandler={() => gleanContext && gleanClick(gleanContext)}
rel={rel}
>
{label}
</Button>
Expand Down

0 comments on commit b7b40f6

Please sign in to comment.