backdrop-contrib / metatag

Add structured metadata, aka "meta tags", for various pages on your site.
GNU General Public License v2.0
3 stars 15 forks source link

Allow `node:` tokens on the Global: Homepage replacements #82

Open catorghans opened 2 years ago

catorghans commented 2 years ago

When the frontpage is a node then with current version of metatag you can not use node: tokens in the metatags. Because metatag does not use Content config on the frontpage and in the Global:Homepage you can not use node tokens.

My proposal would be: remove the else { } from

  // Load any meta tags assigned via metatag_page_set_metatags(). Note: this
  // must include the necessary defaults.
  else {
    $tags += metatag_page_get_metatags($instance);
  }

(line 1799 of metatag.module)

Then it will use both the Global:Homepage settings as well as the Content metatag settings if both are available. But it is also possible I misunderstand the module?