Skip to content

Commit c3e34a7

Browse files
committed
only use enterprise-server for admin links on dotcom
1 parent 9d318e0 commit c3e34a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/rewrite-local-links.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ function getNewHref (link, languageCode, version) {
6868
version = nonEnterpriseDefaultVersion
6969
}
7070

71-
// admin links always point to Enterprise
72-
if (patterns.adminProduct.test(hrefWithoutLang)) {
71+
// admin links on dotcom always point to Enterprise
72+
if (patterns.adminProduct.test(hrefWithoutLang) && version === nonEnterpriseDefaultVersion) {
7373
version = `enterprise-server@${latest}`
7474
}
7575
// ------ END ONE-OFF OVERRIDES ------//

0 commit comments

Comments
 (0)