Motivation
redirectto can contain
$variable parameters that come from the URL parameters (or POSTed form fields). It is more ideal to be able to use
$topic and
$web to retrieve the topic/web names that have just been saved, so that the
redirectto parameter can be easily passed around when multiple levels of redirections and/or form submissions are involved. This is useful especially when the topic name is dynamically determined (e.g. using AUTOINC or
JavaScript).
Description and Documentation
Th value of
redirectto can contain
$topic and
$web.
Below is an example usage:
| Field |
Value |
redirectto |
TopicAfterSave?savedTopic=$topic;savedWeb=$web |
Note: the entire value of the
redirectto should be properly URL-encoded when it is used as a URL parameter.
The same variables are applicable to
SAVEREDIRECTTO preference variable. (
SetRedirecttoByPrefVar)
Examples
Impact
Implementation
--
Contributors:
Mahiro Ando - 2016-11-15
Discussion
Proposal looks good.
--
Peter Thoeny - 2016-11-17
Accepted at
KampalaReleaseMeeting2016x11x17 with
$web and
$topic (to be consistent)
--
Peter Thoeny - 2016-11-17
Thank you, I have updated the above description with
$web and
$topic.
--
Mahiro Ando - 2016-11-18