The function

metatag_page_build()

contains some logic handling a frontpage. In that logic

metatag_cache_get()

is called with a special CID for the frontpage.

But the correct data is is never stored for that CID!

Therefore I suggest equal logic in

metatag_generate_entity_metatags()

to switch to a modified CID when processing the frontpage.

How to reproduce:

  1. Create a taxonomy term and configure it as frontpage in /admin/config/system/site-information
  2. Set some metatag data for that term.
  3. Create a panel page matching /taxonomy/term/%taxonomy_term
  4. The metadata should be rendered into the page which is not done.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

libelle2000’s picture

Issue summary: View changes
libelle2000’s picture

DamienMcKenna’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Active » Needs review
DamienMcKenna’s picture

Out of interest, did you try disabling the "global:frontpage" definition in admin/config/search/metatags?

Status: Needs review » Needs work

The last submitted patch, 2: metatag_data_for_frontpage_2343197.patch, failed testing.

DamienMcKenna’s picture

Status: Needs work » Closed (won't fix)

This is by design - if you want to use an entity for the homepage you have to disable the "global:frontpage" configuration.