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.
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:
- Create a taxonomy term and configure it as frontpage in /admin/config/system/site-information
- Set some metatag data for that term.
- Create a panel page matching /taxonomy/term/%taxonomy_term
- The metadata should be rendered into the page which is not done.
Comment | File | Size | Author |
---|---|---|---|
#2 | metatag_data_for_frontpage_2343197.patch | 2.05 KB | libelle2000 |
Comments
Comment #1
libelle2000 CreditAttribution: libelle2000 commentedComment #2
libelle2000 CreditAttribution: libelle2000 commentedComment #3
DamienMcKennaComment #4
DamienMcKennaOut of interest, did you try disabling the "global:frontpage" definition in admin/config/search/metatags?
Comment #6
DamienMcKennaThis is by design - if you want to use an entity for the homepage you have to disable the "global:frontpage" configuration.