Merge pull request #16839 from overleaf/tm-website-redesign-suppress-alternate

Suppress rel=alternate hreflang links on website redesign variant pages

GitOrigin-RevId: ff53adbaf9aadd261427157a8b60bafe55d6ce36
This commit is contained in:
Thomas 2024-01-31 12:28:31 +01:00 committed by Copybot
parent 783008b05f
commit 2a7e06ea07

View file

@ -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)