From c8a294363d28a61a3f6eddcca27fdfa84dc35c26 Mon Sep 17 00:00:00 2001 From: Neo Date: Wed, 16 Nov 2016 09:44:21 -0500 Subject: [PATCH] Show more accurate url --- packages/angular-cli/commands/github-pages-deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular-cli/commands/github-pages-deploy.ts b/packages/angular-cli/commands/github-pages-deploy.ts index 6eb35fc73e37..eb4f806e4f32 100644 --- a/packages/angular-cli/commands/github-pages-deploy.ts +++ b/packages/angular-cli/commands/github-pages-deploy.ts @@ -240,7 +240,7 @@ const githubPagesDeployCommand = Command.extend({ .then((stdout) => { let match = stdout.match(/origin\s+(?:https:\/\/|git@)github\.com(?:\:|\/)([^\/]+)/m); let userName = match[1].toLowerCase(); - let url = `https://${userName}.github.io/${options.userPage ? '' : (projectName + '/')}`; + let url = `https://${userName}.github.io/${options.userPage ? '' : (baseHref + '/')}`; ui.writeLine(chalk.green(`Deployed! Visit ${url}`)); ui.writeLine('Github pages might take a few minutes to show the deployed site.'); });