mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Replaced config routeKeyword with hardcoded one (#1004)
refs TryGhost/Ghost#9561 - used the hardcoded routeKeyword for `preview` - removed `routeKeywords` from mirage configurations API fixtures
This commit is contained in:
parent
ae759d39ea
commit
ffa30881d5
@ -180,10 +180,11 @@ export default Model.extend(Comparable, ValidationEngine, {
|
||||
return this.get('ghostPaths.url').join(blogUrl, postUrl);
|
||||
}),
|
||||
|
||||
previewUrl: computed('uuid', 'ghostPaths.url', 'config.{blogUrl,routeKeywords.preview}', function () {
|
||||
previewUrl: computed('uuid', 'ghostPaths.url', 'config.blogUrl', function () {
|
||||
let blogUrl = this.get('config.blogUrl');
|
||||
let uuid = this.get('uuid');
|
||||
let previewKeyword = this.get('config.routeKeywords.preview');
|
||||
// routeKeywords.preview: 'p'
|
||||
let previewKeyword = 'p';
|
||||
// New posts don't have a preview
|
||||
if (!uuid) {
|
||||
return '';
|
||||
|
@ -6,12 +6,5 @@ export default [{
|
||||
fileStorage: 'true',
|
||||
internalTags: 'false',
|
||||
publicAPI: 'false',
|
||||
routeKeywords: {
|
||||
tag: 'tag',
|
||||
author: 'author',
|
||||
page: 'page',
|
||||
preview: 'p',
|
||||
private: 'private'
|
||||
},
|
||||
useGravatar: 'true'
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user