Loading hreflang.module +2 −9 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ function hreflang_page_attachments(array &$page) { ->setAbsolute() ->toString(), ], TRUE, ]; } return; Loading Loading @@ -63,16 +62,10 @@ function hreflang_page_attachments(array &$page) { ]; if ($addXDefault && $langcode === $defaultLanguageId) { $attributes['hreflang'] = 'x-default'; $page['#attached']['html_head_link'][] = [ $attributes, TRUE, ]; $page['#attached']['html_head_link'][] = [$attributes]; } $attributes['hreflang'] = $langcode; $page['#attached']['html_head_link'][] = [ $attributes, TRUE, ]; $page['#attached']['html_head_link'][] = [$attributes]; } } // The hreflang tags include query args, so add the query args cache context. Loading Loading
hreflang.module +2 −9 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ function hreflang_page_attachments(array &$page) { ->setAbsolute() ->toString(), ], TRUE, ]; } return; Loading Loading @@ -63,16 +62,10 @@ function hreflang_page_attachments(array &$page) { ]; if ($addXDefault && $langcode === $defaultLanguageId) { $attributes['hreflang'] = 'x-default'; $page['#attached']['html_head_link'][] = [ $attributes, TRUE, ]; $page['#attached']['html_head_link'][] = [$attributes]; } $attributes['hreflang'] = $langcode; $page['#attached']['html_head_link'][] = [ $attributes, TRUE, ]; $page['#attached']['html_head_link'][] = [$attributes]; } } // The hreflang tags include query args, so add the query args cache context. Loading