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