Commit 8a2da065 authored by mark burdett's avatar mark burdett
Browse files

Issue #3266621 by mfb: Remove hreflang link HTTP header to stay in sync with core

parent a40f3443
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -33,7 +33,6 @@ function hreflang_page_attachments(array &$page) {
            ->setAbsolute()
            ->toString(),
        ],
        TRUE,
      ];
    }
    return;
@@ -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.