Merge pull request #5794 from novaugust/psm-blog-url

Add config.blogUrl key to PSM's seoURL property
This commit is contained in:
Hannah Wolfe 2015-09-02 20:50:50 +01:00
commit 92e2ab72ea

View File

@ -149,8 +149,8 @@ export default Ember.Controller.extend(SettingsMenuMixin, {
return placeholder; return placeholder;
}), }),
seoURL: Ember.computed('model.slug', function () { seoURL: Ember.computed('model.slug', 'config.blogUrl', function () {
var blogUrl = this.get('config').blogUrl, var blogUrl = this.get('config.blogUrl'),
seoSlug = this.get('model.slug') ? this.get('model.slug') : '', seoSlug = this.get('model.slug') ? this.get('model.slug') : '',
seoURL = blogUrl + '/' + seoSlug; seoURL = blogUrl + '/' + seoSlug;