Consider the following settings:
- Global metadata is set, `description` tag value is `Lorem ipsum dolor sit amet`.
- Content metadata (under Global) is set, `description` tag value is `[node:summary]`.
Cases:
- If we navigate to the Homepage, which is not a Node, then the Global description tag is rendered.
- If we navigate to "About us", which is a Node and have the Body field filled, then the Content description tag is rendered.
- If we navigate to "Services", which is a Node but don't have Body field filled, then no `description` tag will be rendered.
IMO the 3rd case would outputs the Global description tag instead of nothing. I think metatag should always inherit the parent settings if its own tag is empty or doesn't set.
Does it make sense?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | metatag_parent_override_empty-2850537-5.patch | 1.44 KB | jts86 |
Comments
Comment #2
tregismoreira commentedComment #3
tregismoreira commentedThere's a similar issue for D7: #2044621: Allow parent config to override empty values of more specific config
Comment #4
damienmckennaLets close it in favor of #2044621 then.
Comment #5
jts86 commentedThis is a patch for D8 that filters out children settings if they will produce an empty string, in case someone needs it.