🐛 Fixed /edit route redirect for tag taxonomies

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`
This commit is contained in:
Nazar Gargol 2020-04-16 21:23:38 +12:00
parent 5adbc4aa6a
commit bd92fcd282
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ module.exports.QUERY = {
module.exports.TAXONOMIES = {
tag: {
filter: 'tags:\'%s\'+tags.visibility:public',
editRedirect: '#/settings/tags/:slug/',
editRedirect: '#/tags/:slug/',
resource: 'tags'
},
author: {

View File

@ -42,7 +42,7 @@ module.exports.QUERY = {
module.exports.TAXONOMIES = {
tag: {
filter: 'tags:\'%s\'+tags.visibility:public',
editRedirect: '#/settings/tags/:slug/',
editRedirect: '#/tags/:slug/',
resource: 'tags'
},
author: {

View File

@ -42,7 +42,7 @@ module.exports.QUERY = {
module.exports.TAXONOMIES = {
tag: {
filter: 'tags:\'%s\'+tags.visibility:public',
editRedirect: '#/settings/tags/:slug/',
editRedirect: '#/tags/:slug/',
resource: 'tags'
},
author: {