1
0
mirror of synced 2025-12-22 03:16:52 -05:00

rewrite dotcom-only HTML links (#34248)

This commit is contained in:
Peter Bengtsson
2023-01-30 16:00:32 -05:00
committed by GitHub
parent e4baefc79e
commit 2b885fce25
5 changed files with 8 additions and 6 deletions

View File

@@ -103,6 +103,8 @@ function getNewHref(node, languageCode, version) {
// ------ BEGIN ONE-OFF OVERRIDES ------//
// dotcom-only links always point to dotcom
if (node.properties.className && node.properties.className.includes('dotcom-only')) {
// See internal issue #2672
console.warn('This is deprecated and will soon be removed')
version = nonEnterpriseDefaultVersion
}