Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Metatag works by outputting meta tags on entity view pages (and some other things). There is no support for outputting meta tags on entity forms themselves, which means that modules like Contact, Config Page and eform cannot have meta tags added to them, though it would be really useful.
Comments
Comment #2
DamienMcKennaComment #3
buddaDoes this also cover Webform module forms too?
Comment #4
tiikeri CreditAttribution: tiikeri commentedI think this is a still useful feature request.
In drupal 7 there were some workarounds, like creating a basic page as "contact page" and using a block to show the form. In drupal8 the contact form works slightly different.
Meta tag can be added as field, but contact form can't be managed as a content type, so I guess the option should be added as a feature in the metatag default/settings, but I can't really help with this for luck of knowledge :(
Comment #5
sd123 CreditAttribution: sd123 as a volunteer commentedThis feature is also needed if you want to improve SEO score in lighthouse on for instance a contact page.
Comment #6
a.kovrigin CreditAttribution: a.kovrigin as a volunteer commentedMetatag module works with content entities only and not supports config ones.
I've made a module for the webforms - https://www.drupal.org/project/metatag_webform
Comment #7
DamienMcKennaFWIW you can embed a webform on a node via a reference field, which is a standard workflow, so many sites won't need this. However, a.kovrigin project looks like a good option for sites that need it.
Comment #8
sd123 CreditAttribution: sd123 as a volunteer commented@DamienMvKenna: I suppose what you are writing is relevant only when using the third party webform module and not to the core contact module, right?
Comment #9
DamienMcKennaCorrect.
Comment #10
Greg Boggs+1 for this feature. The page titles and metatags on all my contact forms are poor.