We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7feff26 commit 7bd169fCopy full SHA for 7bd169f
1 file changed
lib/render-content/plugins/rewrite-local-links.js
@@ -50,7 +50,7 @@ function getNewHref (node, languageCode, version) {
50
// /enterprise-server/rest/reference/oauth-authorizations (this redirects to the latest version)
51
// /enterprise-server@latest/rest/reference/oauth-authorizations (this redirects to the latest version)
52
const firstLinkSegment = href.split('/')[1]
53
- if ([...supportedPlans, ...supportedVersions, 'enterprise-server@latest'].includes(firstLinkSegment)) {
+ if ([...supportedPlans, ...supportedVersions, 'enterprise-server@latest'].some(v => firstLinkSegment.startsWith(v))) {
54
newHref = path.join('/', languageCode, href)
55
}
56
0 commit comments