Skip to content

Commit 930e433

Browse files
BKDK-424
1 parent de972c4 commit 930e433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/themes/custom/fds_ballerup_theme/fds_ballerup_theme.theme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function fds_ballerup_theme_preprocess_node(array &$variables) {
117117
/** @var \Drupal\node\NodeInterface $node */
118118
$node = $variables['node'];
119119

120-
if ($variables['view_mode'] == 'search_result' && $node->getType() == 'os2web_page') {
120+
if (($variables['view_mode'] == 'search_result' || $variables['view_mode'] == 'search_index') && $node->getType() == 'os2web_page') {
121121
$sectionLabels = [];
122122
if ($section_id = $node->field_os2web_page_section->target_id) {
123123
$parents = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadAllParents($section_id);

0 commit comments

Comments
 (0)