Motivation
You may want to have a user attach files to Topic A on Topic B and then bring the user back to Topic B.
Description and Documentation
The upload script observes the redirectto parameter but the attach page doesn't take the redirectto parameter, hence the parameter is not handed to the upload script.
Enhancing the attach page for that is one thing. And the oops page needs to get the parameter so that clicking OK leads to the redirectto value rather than the view page of the topic.
Currently, the OK link on the oops page is simply [[%WEB%.%TOPIC%][OK]]. And there is no way to handle redirectto in the same manner as the save and the upload scripts when things go smoothly. So
%REDIRECTTOURL% will be introduced and the oops script will replace
%REDIRECTTOURL% with the value obtained from
TWiki::_getRedirectUrl()
Examples
Impact
Implementation
--
Contributors:
Hideyo Imazu - 2016-07-15
Discussion
Proposal looks good.
--
Peter Thoeny - 2016-07-15