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

DamienMcKenna created an issue. See original summary.

DamienMcKenna’s picture

Title: Support for outputting meta tags on entity forms (config_page, eform, etc) » Support for outputting meta tags on entity forms (contact, config_page, eform, etc)
Issue summary: View changes
budda’s picture

Does this also cover Webform module forms too?

tiikeri’s picture

I 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 :(

sd123’s picture

This feature is also needed if you want to improve SEO score in lighthouse on for instance a contact page.

a.kovrigin’s picture

Metatag 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

DamienMcKenna’s picture

FWIW 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.

sd123’s picture

@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?

DamienMcKenna’s picture

Correct.

Greg Boggs’s picture

+1 for this feature. The page titles and metatags on all my contact forms are poor.