Always redirect to the form for more convenience when editing

This commit is contained in:
Tobi Schäfer 2014-12-21 17:25:34 +01:00
parent 17d66dd419
commit 4daddb822f

View file

@ -154,7 +154,7 @@ Comment.prototype.edit_action = function() {
this.update(req.postParams);
delete session.data.backup;
res.message = gettext('The comment was successfully updated.');;
res.redirect(this.story.href() + '#' + this._id);
res.redirect(this.href(req.action));
} catch (ex) {
res.message = ex;
app.log(ex);