I'd like to request an additional field when creating pages via a link or the NewPage module, which would determine the page to redirect to when the "Cancel" button is pressed.
Currently, the user is faced with a "This page does not (yet!) exist!" error message, which in some circumstances is not ideal, particularly because the link on that page does not include additional settings for parent pages and tags.
Originally I considered the thought that the 'parentPage' setting could be used for this, but that may not always be the place that the user should be redirect to, therefore an additional option is needed in the NewPage module for this purpose.
There is an alternative wish that would achieve the same outcome (and a whole lot more) but it may be harder to implement: Inexisting Page Template
It is possible, in Javascript, to emulate the browser's Back button. In many cases that would be at least as good as redirecting to a specific page.
The Inexisting Page Template is not so good, because it offers no possibility for multiple destinations — just one per category — or for returning back to the referring page.
For example, someone clicks the button to reply to a post and then decides not to. They should be returned to the post they were reading, not some other page.
You could use the Inexisting Page Template if you also had a [[Module RedirectBack]] module, but that is probably much more work than adding a parameter to NewPage.
Actually Richard, you are half right.
We don't need a “Redirect Back” module, because essentially, it already exists:
This will make the browser automatically redirect back 1 page. You could change it to history.go(-2) if you wanted it to go back two pages.
λ James Kanjo
Blog | Wikidot Expert | λ and Proud
Web Developer | HTML | CSS | JavaScript