Consider the following settings:

  1. Global metadata is set, `description` tag value is `Lorem ipsum dolor sit amet`.
  2. Content metadata (under Global) is set, `description` tag value is `[node:summary]`.

Cases:

  1. If we navigate to the Homepage, which is not a Node, then the Global description tag is rendered.
  2. If we navigate to "About us", which is a Node and have the Body field filled, then the Content description tag is rendered.
  3. 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?

Comments

tregismoreira created an issue. See original summary.

tregismoreira’s picture

Issue summary: View changes
damienmckenna’s picture

Status: Active » Closed (duplicate)

Lets close it in favor of #2044621 then.

jts86’s picture

This is a patch for D8 that filters out children settings if they will produce an empty string, in case someone needs it.