- Issue created by @Gรกbor Hojtsy
- ๐ช๐ธSpain fjgarlin
Adding more words to the visual title might not be desired. We might want to target only the
<title>
attribute if that's what Google and browser history cares about. - ๐ช๐ธSpain fjgarlin
In this case, it can be done via metatag configuration on the site.
Config file:
config/sync/metatag.metatag_defaults.node__contribution_record.yml
Contents:langcode: en status: true dependencies: { } id: node__contribution_record label: 'Content: Contribution record' tags: og_title: 'Contribution Records for [node:title]' title: 'Contribution Records for [node:title] | [site:name]'
That translates into the following markup:
<meta property="og:title" content="Contribution Records for Olivero: Center align content (instead of left align)" /> ... <title>Contribution Records for Olivero: Center align content (instead of left align) | Drupal.org</title>
And the
h1
of the page is unaffected.Browser history: