Skip to content
Snippets Groups Projects
Unverified Commit 000b8358 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Add canonical link tags in web UI (#25715)

parent b7910bc7
No related branches found
No related tags found
No related merge requests found
...@@ -476,6 +476,7 @@ class Header extends ImmutablePureComponent { ...@@ -476,6 +476,7 @@ class Header extends ImmutablePureComponent {
<Helmet> <Helmet>
<title>{titleFromAccount(account)}</title> <title>{titleFromAccount(account)}</title>
<meta name='robots' content={(isLocal && isIndexable) ? 'all' : 'noindex'} /> <meta name='robots' content={(isLocal && isIndexable) ? 'all' : 'noindex'} />
<link rel='canonical' href={account.get('url')} />
</Helmet> </Helmet>
</div> </div>
); );
......
...@@ -713,6 +713,7 @@ class Status extends ImmutablePureComponent { ...@@ -713,6 +713,7 @@ class Status extends ImmutablePureComponent {
<Helmet> <Helmet>
<title>{titleFromStatus(intl, status)}</title> <title>{titleFromStatus(intl, status)}</title>
<meta name='robots' content={(isLocal && isIndexable) ? 'all' : 'noindex'} /> <meta name='robots' content={(isLocal && isIndexable) ? 'all' : 'noindex'} />
<link rel='canonical' href={status.get('url')} />
</Helmet> </Helmet>
</Column> </Column>
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment