diff -u b/core/modules/node/node.module b/core/modules/node/node.module --- b/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -626,6 +626,9 @@ // @todo Simplify in D9 $variables['label']['#inline_title'] = TRUE; } + else { + $variables['elements']['title']['#inline_title'] = FALSE; + } $variables['url'] = $node->url('canonical', [ 'language' => $node->language(), @@ -665,7 +668,17 @@ */ function node_preprocess_field__node__title(&$variables) { $element = $variables['element']; - $variables['inline_title'] = isset($element['#inline_title']) ? $element['#inline_title'] : FALSE; + if (isset($element['#inline_title'])) { + // Pass #inline_title through to the template. + $variables['inline_title'] = $element['#inline_title']; + } + else { + // If the array entry is missing that can only be because the field has + // been taken out of the normal node to use for the page title. In this + // case, the title must be inline as the page title template will wrap + // it in a header. + $variables['inline_title'] = TRUE; + } } /**