We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a54c3ff commit ca39571Copy full SHA for ca39571
1 file changed
lib/redirects/get-docs-path-from-developer-path.js
@@ -40,7 +40,7 @@ module.exports = function getDocsPathFromDeveloperPath (oldDeveloperPath, allRed
40
// oneoff redirect for a dotcom developer path to Enterprise-only path on docs.github.com
41
const oauthAuthorizations = '/v3/oauth_authorizations'
42
if (newPath.endsWith(oauthAuthorizations)) {
43
- newPath = newPath.replace(oauthAuthorizations, '/enterprise-server/v3/oauth_authorizations')
+ newPath = newPath.replace(oauthAuthorizations, `/enterprise-server@${latest}/v3/oauth_authorizations`)
44
}
45
46
// Change /v4/foo/bar to /v4/foo#bar
0 commit comments