Skip to content

Commit b1f1e1c

Browse files
authored
correct for windows slashes in redirect precompile
1 parent 7db4a3c commit b1f1e1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redirects/precompile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = async function precompileRedirects (pages) {
8585
// add a veriation like `/free-pro-team@latest/v3/gists/comments`;
8686
// again, we need to do this because all links in content get rewritten
8787
if (!developerRoute.startsWith('/enterprise/')) {
88-
const developerRouteWithVersion = path.join(nonEnterpriseDefaultVersion, developerRoute)
88+
const developerRouteWithVersion = slash(path.join(nonEnterpriseDefaultVersion, developerRoute))
8989
const developerRouteWithVersionAndLanguage = `/en/${developerRouteWithVersion}`
9090
allRedirects[developerRouteWithVersion] = newPath
9191
allRedirects[developerRouteWithVersionAndLanguage] = newPath

0 commit comments

Comments
 (0)