0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Accept all versions of 'edit' as URL parameter

closes #3644
This commit is contained in:
Felix Rieseberg 2014-08-06 19:02:20 -07:00
parent 4b83dfd6ab
commit 8453067d70

View file

@ -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) {