Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

don't follow sign in links enhancement: Google should not follow sign in links

Guilherme Oenningcebcf242babe
diff --git a/public/components/common/Button.tsx b/public/components/common/Button.tsx
index 04de1b9af..94cee4546 100644
--- a/public/components/common/Button.tsx
+++ b/public/components/common/Button.tsx
@@ -5,6 +5,7 @@ interface ButtonProps {
className?: string;
disabled?: boolean;
href?: string;
+ rel?: "nofollow";
color?: "positive" | "danger" | "default";
fluid?: boolean;
size?: "mini" | "tiny" | "small" | "normal" | "large";
@@ -80,7 +81,7 @@ export class Button extends React.Component<ButtonProps, ButtonState> {
if (this.props.href) {
return (
- <a href={this.props.href} className={className}>
+ <a href={this.props.href} rel={this.props.rel} className={className}>
{this.props.children}
</a>
);
diff --git a/public/components/common/SocialSignInButton.tsx b/public/components/common/SocialSignInButton.tsx
index 234d4e0c6..800c8b0e3 100644
--- a/public/components/common/SocialSignInButton.tsx
+++ b/public/components/common/SocialSignInButton.tsx
@@ -22,7 +22,7 @@ export class SocialSignInButton extends React.Component<SocialSignInButtonProps,
[`m-${this.props.option.provider}`]: this.props.option.provider
});
return (
- <Button href={href} fluid={true} className={className}>
+ <Button href={href} rel="nofollow" fluid={true} className={className}>
{this.props.option.logoUrl ? (
<img src={this.props.option.logoUrl} />
) : (