зеркало из https://github.com/github/docs.git
add enterprise-server@latest redirect to real latest version
This commit is contained in:
Родитель
3a85702cd5
Коммит
7563adce8a
|
@ -82,6 +82,10 @@ module.exports = function getOldPathsFromPath (currentPath, languageCode, curren
|
|||
oldPaths.add(oldPath
|
||||
.replace(`/enterprise-server@${latest}`, '/enterprise-server'))
|
||||
|
||||
// create old path /enterprise-server@latest from new path /enterprise-server@<latest>
|
||||
oldPaths.add(oldPath
|
||||
.replace(`/enterprise-server@${latest}`, '/enterprise-server@latest'))
|
||||
|
||||
if (!patterns.adminProduct.test(oldPath)) {
|
||||
// create old path /enterprise/<version>/user/foo from new path /enterprise-server@<version>/foo
|
||||
oldPaths.add(currentPath
|
||||
|
|
Загрузка…
Ссылка в новой задаче