From ca395716c556e7d9805602191a833eb6533115ec Mon Sep 17 00:00:00 2001 From: Sarah Schneider Date: Tue, 19 Jan 2021 17:44:24 -0500 Subject: [PATCH] add latest GHES release to path --- lib/redirects/get-docs-path-from-developer-path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redirects/get-docs-path-from-developer-path.js b/lib/redirects/get-docs-path-from-developer-path.js index bf7f0a0b5d..af288f8b33 100644 --- a/lib/redirects/get-docs-path-from-developer-path.js +++ b/lib/redirects/get-docs-path-from-developer-path.js @@ -40,7 +40,7 @@ module.exports = function getDocsPathFromDeveloperPath (oldDeveloperPath, allRed // oneoff redirect for a dotcom developer path to Enterprise-only path on docs.github.com const oauthAuthorizations = '/v3/oauth_authorizations' if (newPath.endsWith(oauthAuthorizations)) { - newPath = newPath.replace(oauthAuthorizations, '/enterprise-server/v3/oauth_authorizations') + newPath = newPath.replace(oauthAuthorizations, `/enterprise-server@${latest}/v3/oauth_authorizations`) } // Change /v4/foo/bar to /v4/foo#bar