1
0
mirror of synced 2025-12-23 03:44:00 -05:00

remove helper from this branch (to be re-added in child branch for easier reviewing)

This commit is contained in:
Sarah Schneider
2021-01-14 12:07:49 -05:00
parent 79a7a7972f
commit b6032f285c
8 changed files with 9 additions and 30 deletions

View File

@@ -6,7 +6,6 @@ const { getNewVersionedPath } = require('./old-versions-utils')
const patterns = require('./patterns')
const { deprecated, latest } = require('./enterprise-server-releases')
const nonEnterpriseDefaultVersion = require('./non-enterprise-default-version')
const removeFPTFromPath = require('./remove-fpt-from-path')
const allVersions = require('./all-versions')
const supportedVersions = Object.keys(allVersions)
const supportedPlans = Object.values(allVersions).map(v => v.plan)
@@ -80,7 +79,7 @@ function getNewHref (link, languageCode, version) {
// ------ END ONE-OFF OVERRIDES ------//
// update the version in the link
newHref = removeFPTFromPath(newHref.replace(versionFromHref, version))
newHref = newHref.replace(versionFromHref, version)
}
newHref = newHref.replace(patterns.trailingSlash, '$1')