mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03: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:
commit
057a8d19ac
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user