diff --git a/app/javascript/mastodon/features/account/components/header.jsx b/app/javascript/mastodon/features/account/components/header.jsx index 5eea1abf0420f97fa3c6f4faa2709143e1d45456..b718e860d0d4dc80d4eec3055e7a1f3f92e404c1 100644 --- a/app/javascript/mastodon/features/account/components/header.jsx +++ b/app/javascript/mastodon/features/account/components/header.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> ); diff --git a/app/javascript/mastodon/features/status/index.jsx b/app/javascript/mastodon/features/status/index.jsx index 892cfbb7b33ac9b3b185898ca5853188b4fbfa74..e5faba08396d44c933d8c525fec8d7f40e505dc6 100644 --- a/app/javascript/mastodon/features/status/index.jsx +++ b/app/javascript/mastodon/features/status/index.jsx @@ -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> );