Skip to content

Commit

Permalink
fix(gh-deploy): fix deep links (#1020)
Browse files Browse the repository at this point in the history
Fix #995
  • Loading branch information
filipesilva authored and hansl committed Jun 7, 2016
1 parent 5f909aa commit f8f8179
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addon/ng2/commands/github-pages-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ module.exports = Command.extend({
let indexHtml = path.join(root, 'index.html');
return fsReadFile(indexHtml, 'utf8')
.then((data) => data.replace(/<base href="\/">/g, `<base href="/${projectName}/">`))
.then((data) => fsWriteFile(indexHtml, data, 'utf8'));
.then((data) => {
fsWriteFile(indexHtml, data, 'utf8');
fsWriteFile(path.join(root, '404.html'), data, 'utf8');
});
}

function addAndCommit() {
Expand Down

0 comments on commit f8f8179

Please sign in to comment.