Skip to content

Commit ca39571

Browse files
committed
add latest GHES release to path
1 parent a54c3ff commit ca39571

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/redirects/get-docs-path-from-developer-path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = function getDocsPathFromDeveloperPath (oldDeveloperPath, allRed
4040
// oneoff redirect for a dotcom developer path to Enterprise-only path on docs.github.com
4141
const oauthAuthorizations = '/v3/oauth_authorizations'
4242
if (newPath.endsWith(oauthAuthorizations)) {
43-
newPath = newPath.replace(oauthAuthorizations, '/enterprise-server/v3/oauth_authorizations')
43+
newPath = newPath.replace(oauthAuthorizations, `/enterprise-server@${latest}/v3/oauth_authorizations`)
4444
}
4545

4646
// Change /v4/foo/bar to /v4/foo#bar

0 commit comments

Comments
 (0)