1
0
mirror of synced 2025-12-21 10:57:10 -05:00

Default to enterprise-cloud@latest for admin links (#34983)

This commit is contained in:
Peter Bengtsson
2023-02-22 11:33:06 -05:00
committed by GitHub
parent da2b2f22ba
commit d19996f6a2

View File

@@ -144,9 +144,9 @@ function getNewHref(node, languageCode, version) {
version = nonEnterpriseDefaultVersion
}
// admin links on dotcom always point to Enterprise
// admin links on dotcom always point to Enterprise Cloud
if (patterns.adminProduct.test(hrefWithoutLang) && version === nonEnterpriseDefaultVersion) {
version = `enterprise-server@${latest}`
version = 'enterprise-cloud@latest'
}
// ------ END ONE-OFF OVERRIDES ------//