From f8f81796c6c4c8768780ab9b38562f33ac988cb7 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Tue, 7 Jun 2016 04:55:21 +0100 Subject: [PATCH] fix(gh-deploy): fix deep links (#1020) Fix #995 --- addon/ng2/commands/github-pages-deploy.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addon/ng2/commands/github-pages-deploy.ts b/addon/ng2/commands/github-pages-deploy.ts index f53279238c97..8ac1478c1e6f 100644 --- a/addon/ng2/commands/github-pages-deploy.ts +++ b/addon/ng2/commands/github-pages-deploy.ts @@ -172,7 +172,10 @@ module.exports = Command.extend({ let indexHtml = path.join(root, 'index.html'); return fsReadFile(indexHtml, 'utf8') .then((data) => data.replace(//g, ``)) - .then((data) => fsWriteFile(indexHtml, data, 'utf8')); + .then((data) => { + fsWriteFile(indexHtml, data, 'utf8'); + fsWriteFile(path.join(root, '404.html'), data, 'utf8'); + }); } function addAndCommit() {