Bug: Topic param in SEARCH does not expand variables such as URLPARAM
topic parameter in SEARCH limits searches to specific topics. Like many other parameters, this variable should also undergo variable substitution.
Test case
in a SEARCH, try param="%URLPARAM{"mytopic"}% and use "?mytopic=TopicName with the URL. Search for unique string within this topic.
Environment
--
VinodKulkarni - 17 Jul 2004
Follow up
I just tried this in my installation, and it works as advertised. E.g., try the search
%SEARCH{%URLPARAM{"test"}%}%, and pass the parameter
test=Vinod (or whatever else you want to search for) to the topic. You can try it on this topic, see below...
--
ThomasWeigert - 17 Jul 2004
(My mistake, should have generated test cases from clean builds.)
Neverthless, some comments: I had referred to topic= parameter specifically and not other parameters in general. triggerred by reading code in TWiki::Search::_searchTopicsInWeb that expands topic variable (looking for wildcards etc.) It didn't do handleCommonTags().
What was not clear was whether %URLPARAM% got expanded before %SEARCH% was consdered for rendering. Since it works, I presume this is indeed so.
--
VinodKulkarni - 18 Jul 2004
Fix record