diff --git a/core/client/components/gh-url-preview.js b/core/client/components/gh-url-preview.js index 2a3d29e3fd..05754803b6 100644 --- a/core/client/components/gh-url-preview.js +++ b/core/client/components/gh-url-preview.js @@ -18,7 +18,7 @@ var urlPreview = Ember.Component.extend({ slug = this.get('slug') ? this.get('slug') : '', // Join parts of the URL together with slashes - theUrl = noSchemeBlogUrl + '/' + prefix + slug; + theUrl = noSchemeBlogUrl + '/' + prefix + (slug ? slug + '/' : ''); this.set('the-url', theUrl); }.on('didInsertElement').observes('slug')