rewrite dotcom-only HTML links (#34248)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user