From 2a7e06ea073e35ebcd4af5ac2c67b59476df0325 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 31 Jan 2024 12:28:31 +0100 Subject: [PATCH] Merge pull request #16839 from overleaf/tm-website-redesign-suppress-alternate Suppress rel=alternate hreflang links on website redesign variant pages GitOrigin-RevId: ff53adbaf9aadd261427157a8b60bafe55d6ce36 --- services/web/app/views/layout-base.pug | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/services/web/app/views/layout-base.pug b/services/web/app/views/layout-base.pug index dc8a025c94..44ed791df2 100644 --- a/services/web/app/views/layout-base.pug +++ b/services/web/app/views/layout-base.pug @@ -20,10 +20,11 @@ html( block _headLinks - if settings.i18n.subdomainLang - each subdomainDetails in settings.i18n.subdomainLang - if !subdomainDetails.hide - link(rel="alternate", href=subdomainDetails.url+currentUrl, hreflang=subdomainDetails.lngCode) + if (typeof(suppressRelAlternateLinks) == "undefined") + if settings.i18n.subdomainLang + each subdomainDetails in settings.i18n.subdomainLang + if !subdomainDetails.hide + link(rel="alternate", href=subdomainDetails.url+currentUrl, hreflang=subdomainDetails.lngCode) if (entrypoint !== 'marketing') link(rel="preload", href=buildJsPath(currentLngCode + "-json.js"), as="script", nonce=scriptNonce)