When global metatags are available, panel pages will never pick those up if
- The metatag is not enabled per variant
- The values on the variant are the same as the global defaults
Especially the second one has caused me some time to figure out what was going on here.
One could argue that for the first case, the current situation is ok. On the other hand, globals are configured, so why not apply them ? One could also argue that it's kind of pointless to apply defaults if nothing is available in the form.
Anyway, patch coming up that will load the global defaults for both cases.
Comments
Comment #1
swentel commentedComment #2
swentel commentedComment #3
damienmckennaI'm not sure that's the correct way of doing it - it already runs metatag_config_load_with_defaults() later on, so this code would trigger that twice.
FYI I've also created #2495937: Verify that Metatag:Panels works correct w APIs, default configs to do an audit of the Panels integration to confirm it works correctly and consistently with the other submodules.
Comment #4
swentel commentedHmm you're right, it runs twice now which is indeed unnecessary. I'll have a look again over the weekend to see if I can make it run with less overhead.
Comment #5
damienmckennaPostponing this until #2730693: Decide how all submodules should work is finished.
Comment #6
bluegeek9 commented