mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Merge pull request #3647 from felixrieseberg/iss3644
Accept all versions of 'edit' as URL parameter
This commit is contained in:
commit
2aed220e9e
1 changed files with 3 additions and 0 deletions
|
@ -317,6 +317,9 @@ frontendControllers = {
|
|||
|
||||
function render() {
|
||||
// If we're ready to render the page but the last param is 'edit' then we'll send you to the edit page.
|
||||
if (params.edit) {
|
||||
params.edit = params.edit.toLowerCase();
|
||||
}
|
||||
if (params.edit === 'edit') {
|
||||
return res.redirect(config.paths.subdir + '/ghost/editor/' + post.id + '/');
|
||||
} else if (params.edit !== undefined) {
|
||||
|
|
Loading…
Reference in a new issue