0
Fork 0
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:
Hannah Wolfe 2014-08-13 18:22:18 +01:00
commit 2aed220e9e

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