Skip to content

Commit a431389

Browse files
Wenchen Lihansl
Wenchen Li
authored andcommitted
fix(github-pages-deploy): Show more accurate url (#3160)
1 parent 7c8b7f0 commit a431389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular-cli/commands/github-pages-deploy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ const githubPagesDeployCommand = Command.extend({
240240
.then((stdout) => {
241241
let match = stdout.match(/origin\s+(?:https:\/\/|git@)github\.com(?:\:|\/)([^\/]+)/m);
242242
let userName = match[1].toLowerCase();
243-
let url = `https://${userName}.github.io/${options.userPage ? '' : (projectName + '/')}`;
243+
let url = `https://${userName}.github.io/${options.userPage ? '' : (baseHref + '/')}`;
244244
ui.writeLine(chalk.green(`Deployed! Visit ${url}`));
245245
ui.writeLine('Github pages might take a few minutes to show the deployed site.');
246246
});

0 commit comments

Comments
 (0)