Skip to content

Commit f8f8179

Browse files
filipesilvahansl
authored andcommitted
fix(gh-deploy): fix deep links (#1020)
Fix #995
1 parent 5f909aa commit f8f8179

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

addon/ng2/commands/github-pages-deploy.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ module.exports = Command.extend({
172172
let indexHtml = path.join(root, 'index.html');
173173
return fsReadFile(indexHtml, 'utf8')
174174
.then((data) => data.replace(/<base href="\/">/g, `<base href="/${projectName}/">`))
175-
.then((data) => fsWriteFile(indexHtml, data, 'utf8'));
175+
.then((data) => {
176+
fsWriteFile(indexHtml, data, 'utf8');
177+
fsWriteFile(path.join(root, '404.html'), data, 'utf8');
178+
});
176179
}
177180

178181
function addAndCommit() {

0 commit comments

Comments
 (0)