Add canonical link tags in web UI (#25715)

local
Eugen Rochko 11 months ago committed by GitHub
parent b7910bc751
commit 000b835803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/javascript/mastodon/features/account/components/header.jsx
  2. 1
      app/javascript/mastodon/features/status/index.jsx

@ -476,6 +476,7 @@ class Header extends ImmutablePureComponent {
<Helmet>
<title>{titleFromAccount(account)}</title>
<meta name='robots' content={(isLocal && isIndexable) ? 'all' : 'noindex'} />
<link rel='canonical' href={account.get('url')} />
</Helmet>
</div>
);

@ -713,6 +713,7 @@ class Status extends ImmutablePureComponent {
<Helmet>
<title>{titleFromStatus(intl, status)}</title>
<meta name='robots' content={(isLocal && isIndexable) ? 'all' : 'noindex'} />
<link rel='canonical' href={status.get('url')} />
</Helmet>
</Column>
);

Loading…
Cancel
Save