fix: redirect to a Story’s main action after saving

This commit is contained in:
Tobi Schäfer 2015-08-10 14:29:43 +02:00
parent 0d2b6f8ec4
commit 733d334a66

View file

@ -223,7 +223,7 @@ Story.prototype.edit_action = function() {
}).call(this, req.postParams['og:image_array'], req.postParams['og:video_array']);
delete session.data.backup;
res.message = gettext('The story was successfully updated.');
res.redirect(this.href(req.action));
res.redirect(this.href());
} catch (ex) {
res.message = ex;
app.log(ex);