Ferreteria/v0.5/stash

From Woozle Writes Code
< Ferreteria‎ | v0.5
Revision as of 19:52, 3 December 2022 by Woozle (talk | contribs) (Created page with "{{fmt/title|Ferreteria 0.5: message stashing}} ==About== Sometimes a process emits output right before a redirect needs to happen -- most commonly in response to a form submis...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Ferreteria 0.5: message stashing

About

Sometimes a process emits output right before a redirect needs to happen -- most commonly in response to a form submission (we do a redirect right after processing POST input in order to prevent accidental data resubmissions).

For this reason, the redirect system checks for output (which would/should not yet have been sent to the screen anyway), stashes it via the stash cookie, and then does the redirect. The page object should always look for any stashed content to display, adding it at the top of any content it adds to the render. (This last part is currently not working, 2022-12-03.)