Skip to content

Commit

Permalink
fix(ui): ensure demo post url is output correctly (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixPeca authored and acburdine committed Aug 16, 2018
1 parent ade4e41 commit b054939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/major-update/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function ui(ctx) {
ctx.ui.log(`${logSymbols.success} Your theme is compatible.\n`);

if (demoPost && demoPost.uuid) {
const demoLink = `${ctx.instance.config.get('url')}p/${demoPost.uuid}/`;
const demoLink = `${ctx.instance.config.get('url').replace(/\/$/,'')}/p/${demoPost.uuid}/`;
ctx.ui.log(`Visit the demo post at ${chalk.cyan(demoLink)} to see how your theme looks like in Ghost 2.0`);
}

Expand Down Expand Up @@ -133,7 +133,7 @@ module.exports = function ui(ctx) {
}

if (demoPost && demoPost.uuid) {
const demoLink = `${ctx.instance.config.get('url')}p/${demoPost.uuid}/`;
const demoLink = `${ctx.instance.config.get('url').replace(/\/$/,'')}/p/${demoPost.uuid}/`;
ctx.ui.log(`Visit the demo post at ${chalk.cyan(demoLink)} to see how your theme looks like in Ghost 2.0`);
}

Expand Down

0 comments on commit b054939

Please sign in to comment.