0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Merge pull request #4842 from chilts/add-slash-to-tag-editor-tag-url

Make preview URLs include trailing slash when slug is given
This commit is contained in:
Hannah Wolfe 2015-01-27 17:45:01 +00:00
commit 057a8d19ac

View file

@ -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')