0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Add config.blogUrl key to PSM's seoURL property

Closes #5793
This commit is contained in:
Matt Enlow 2015-09-02 12:34:48 -06:00
parent 4f860ed5a3
commit a4e6dd4dc0

View file

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