We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3312a1 commit b3df7ddCopy full SHA for b3df7dd
lib/deploy/plugin.js
@@ -151,7 +151,7 @@ module.exports = class AddonDocsDeployPlugin {
151
152
_updateIndexContents(context, stagingDirectory, appRoot, deployVersion) {
153
let indexPath = `${stagingDirectory}/${appRoot}/index.html`;
154
- let rootURL = [this._getRootURL(), appRoot].filter(Boolean).join('/');
+ let rootURL = [this._getRootURL(), appRoot].filter(Boolean).join('/').replace(/\\/g, '/');
155
let addonDocsRootURL = rootURL === '' ? '/' : `/${rootURL}/`;
156
let contents = fs.readFileSync(indexPath, 'utf-8');
157
let encodedVersion = encodeURIComponent(JSON.stringify(deployVersion));
0 commit comments