[Glitch] Add canonical link tags in web UI

Port 000b835803 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
local
Eugen Rochko 11 months ago committed by Claire
parent c6246807f5
commit b3f209370b
  1. 1
      app/javascript/flavours/glitch/features/account/components/header.jsx
  2. 1
      app/javascript/flavours/glitch/features/status/index.jsx

@ -398,6 +398,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>
);

@ -754,6 +754,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