mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
🐛 Fixed edit link for staff members
closes #12069 - the url in admin changed from team to staff, and wasn't updated in the frontend
This commit is contained in:
parent
3f08443e26
commit
995a4eb46e
4 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@ module.exports.TAXONOMIES = {
|
|||
},
|
||||
author: {
|
||||
filter: 'authors:\'%s\'',
|
||||
editRedirect: '#/team/:slug/',
|
||||
editRedirect: '#/staff/:slug/',
|
||||
resource: 'authors'
|
||||
}
|
||||
};
|
||||
|
|
|
@ -47,7 +47,7 @@ module.exports.TAXONOMIES = {
|
|||
},
|
||||
author: {
|
||||
filter: 'authors:\'%s\'',
|
||||
editRedirect: '#/team/:slug/',
|
||||
editRedirect: '#/staff/:slug/',
|
||||
resource: 'authors'
|
||||
}
|
||||
};
|
||||
|
|
|
@ -47,7 +47,7 @@ module.exports.TAXONOMIES = {
|
|||
},
|
||||
author: {
|
||||
filter: 'authors:\'%s\'',
|
||||
editRedirect: '#/team/:slug/',
|
||||
editRedirect: '#/staff/:slug/',
|
||||
resource: 'authors'
|
||||
}
|
||||
};
|
||||
|
|
|
@ -554,7 +554,7 @@ describe('Dynamic Routing', function () {
|
|||
|
||||
it('should redirect to editor', function (done) {
|
||||
request.get('/author/ghost-owner/edit/')
|
||||
.expect('Location', 'http://127.0.0.1:2369/ghost/#/team/ghost-owner/')
|
||||
.expect('Location', 'http://127.0.0.1:2369/ghost/#/staff/ghost-owner/')
|
||||
.expect('Cache-Control', testUtils.cacheRules.public)
|
||||
.expect(302)
|
||||
.end(doEnd(done));
|
||||
|
|
Loading…
Add table
Reference in a new issue