Skip to content

Commit b3df7dd

Browse files
lolmausRobbieTheWagner
authored andcommitted
rootURL: replace backslashes with forward slashes, fixes #427 (#428)
1 parent b3312a1 commit b3df7dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/deploy/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ module.exports = class AddonDocsDeployPlugin {
151151

152152
_updateIndexContents(context, stagingDirectory, appRoot, deployVersion) {
153153
let indexPath = `${stagingDirectory}/${appRoot}/index.html`;
154-
let rootURL = [this._getRootURL(), appRoot].filter(Boolean).join('/');
154+
let rootURL = [this._getRootURL(), appRoot].filter(Boolean).join('/').replace(/\\/g, '/');
155155
let addonDocsRootURL = rootURL === '' ? '/' : `/${rootURL}/`;
156156
let contents = fs.readFileSync(indexPath, 'utf-8');
157157
let encodedVersion = encodeURIComponent(JSON.stringify(deployVersion));

0 commit comments

Comments
 (0)