Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/jeffmcaffer-patch-2' into bulk-w…
Browse files Browse the repository at this point in the history
…indows-fixes-1602277955
  • Loading branch information
chiedo committed Oct 9, 2020
2 parents 7e22af7 + f45e503 commit 8872f63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/redirects/precompile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path')
const slash = require('slash')
const patterns = require('../patterns')
const { latest } = require('../enterprise-server-releases')
const getOldPathsFromPermalink = require('../redirects/get-old-paths-from-permalink')
Expand Down Expand Up @@ -85,7 +86,7 @@ module.exports = async function precompileRedirects (pages) {
// add a veriation like `/free-pro-team@latest/v3/gists/comments`;
// again, we need to do this because all links in content get rewritten
if (!developerRoute.startsWith('/enterprise/')) {
const developerRouteWithVersion = path.join(nonEnterpriseDefaultVersion, developerRoute)
const developerRouteWithVersion = slash(path.join(nonEnterpriseDefaultVersion, developerRoute))
const developerRouteWithVersionAndLanguage = `/en/${developerRouteWithVersion}`
allRedirects[developerRouteWithVersion] = newPath
allRedirects[developerRouteWithVersionAndLanguage] = newPath
Expand Down

0 comments on commit 8872f63

Please sign in to comment.