ezsystems/ezdemo — pull request #38 by bdunogier (2014-11-24 14:40:41+00:00)
Title: Fix EZP-23478: unexpected legacy red. after publish

> See [EZP-23478]
> See ezpublish kernel pull request

When editing content from a new stack frontoffice, with edit screen handled in a legacy fallback, redirection after publish will be done to the last visited legacy uri, not to the edited content as we could expect. This is because legacy isn't used to "visit" modules anymore, and nothing is saved as last page, except pure legacy fallbacks.

This fix adds explicit post fields to the ezdemo edit templates, so that explicit redirection uris can be passed to the form. The RedirectURIAfterPublish and RedirectIfDiscarded POST variables can be sent to content/action and content/edit. They will be saved to the session, and added to the form.

## Open questions
-

[EZP-23478]: https://jira.ez.no/browse/EZP-23478