We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a85702 commit 7563adcCopy full SHA for 7563adc
1 file changed
lib/redirects/get-old-paths-from-permalink.js
@@ -82,6 +82,10 @@ module.exports = function getOldPathsFromPath (currentPath, languageCode, curren
82
oldPaths.add(oldPath
83
.replace(`/enterprise-server@${latest}`, '/enterprise-server'))
84
85
+ // create old path /enterprise-server@latest from new path /enterprise-server@<latest>
86
+ oldPaths.add(oldPath
87
+ .replace(`/enterprise-server@${latest}`, '/enterprise-server@latest'))
88
+
89
if (!patterns.adminProduct.test(oldPath)) {
90
// create old path /enterprise/<version>/user/foo from new path /enterprise-server@<version>/foo
91
oldPaths.add(currentPath
0 commit comments