mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
bd92fcd282
refs 183e22e0bf (diff-f3a289058604b2b069d07bb8e2cda60cL39)
- When using the `/edit` route in the end of tag taxonomy redirect was landing on 404 page in Ghost-Admin. For example redirect for `/tags/getting-started/edit/` would redirect to `/#/settings/tags/getting-started`, instead of `/#/tags/getting-started`
- Referenced commit is where the routing in Ghost-Admin was changed from `/settings/tags/:slug/` to `/tags/:slug`
55 lines
1.1 KiB
JavaScript
55 lines
1.1 KiB
JavaScript
/* eslint-disable */
|
|
module.exports.QUERY = {
|
|
tag: {
|
|
controller: 'tagsPublic',
|
|
type: 'read',
|
|
resource: 'tags',
|
|
options: {
|
|
slug: '%s',
|
|
visibility: 'public'
|
|
}
|
|
},
|
|
author: {
|
|
controller: 'authorsPublic',
|
|
type: 'read',
|
|
resource: 'authors',
|
|
options: {
|
|
slug: '%s'
|
|
}
|
|
},
|
|
post: {
|
|
controller: 'postsPublic',
|
|
type: 'read',
|
|
resource: 'posts',
|
|
options: {
|
|
slug: '%s'
|
|
}
|
|
},
|
|
page: {
|
|
controller: 'pagesPublic',
|
|
type: 'read',
|
|
resource: 'pages',
|
|
options: {
|
|
slug: '%s'
|
|
}
|
|
},
|
|
preview: {
|
|
controller: 'preview',
|
|
resource: 'preview'
|
|
}
|
|
};
|
|
|
|
module.exports.TAXONOMIES = {
|
|
tag: {
|
|
filter: 'tags:\'%s\'+tags.visibility:public',
|
|
editRedirect: '#/tags/:slug/',
|
|
resource: 'tags'
|
|
},
|
|
author: {
|
|
filter: 'authors:\'%s\'',
|
|
editRedirect: '#/team/:slug/',
|
|
resource: 'authors'
|
|
}
|
|
};
|
|
/* eslint-enable */
|