TWiki::Func::redirectCgiQuery
did not support the pass through parameter, meaning that it was never possible to pass parameters across a redirect when invoking that through the Func API. This made this feature impossible, but many others also.
Suggest to change this API to
-
$query
- CGI query object. Ignored, only there for compatibility. The session CGI query object is used instead.
-
$url
- URL to redirect to
-
$passthrough
- If set, passes all parameters that were passed to the current query on to the redirect target
by adding the final parameter. This change is necessary to utilize the changes made to the redirection mechanism in TWiki4, and also to address issues such as the critical Bugs:Item2614
This is an enhancement proposal, not a bug.
CC
I think it is a bug in the plugin API because plugins cannot use
$passthrough
on redirect. That is a problem that prevents e.g., handling leases in plugins (independent of whether we use get/set lease or the more abstract
checkTopicEditLock
. --
TW
OK, if you can persuade the release team that it should go in, I won;t argue. Resetting to Actioning, as the analysis is clear. Just needs someone to do it.
CC
Needed it, so i did it. new functionality, so marked Waiting for Release.
CC
4.1.0 released
KJL