Re: [Wikitech-l] special:search/foo redirect to category:foo

2011-10-15 Thread John Vandenberg
On Sat, Oct 15, 2011 at 4:33 AM, Daniel Barrett d...@vistaprint.com wrote: Is it possible for the special:search logic to take us to [[category:foo]] if [[foo]] doesnt exist and [[category:foo]] does? This should be an easy wiki extension to write, using the hook SpecialSearchGo($title,

Re: [Wikitech-l] special:search/foo redirect to category:foo

2011-10-15 Thread Thomas Gries
Am 15.10.2011 14:45, schrieb John Vandenberg: On Sat, Oct 15, 2011 at 4:33 AM, Daniel Barrett d...@vistaprint.com wrote: Is it possible for the special:search logic to take us to [[category:foo]] if [[foo]] doesnt exist and [[category:foo]] does? This should be an easy wiki extension to

Re: [Wikitech-l] special:search/foo redirect to category:foo

2011-10-14 Thread David Gerard
On 14 October 2011 10:42, John Vandenberg jay...@gmail.com wrote: When we go to special:search/blah now, if [[foo]] exists the search page will redirect us to [[foo]]. Is it possible for the special:search logic to take us to [[category:foo]] if [[foo]] doesnt exist and [[category:foo]] does?

Re: [Wikitech-l] special:search/foo redirect to category:foo

2011-10-14 Thread Daniel Barrett
Is it possible for the special:search logic to take us to [[category:foo]] if [[foo]] doesnt exist and [[category:foo]] does? This should be an easy wiki extension to write, using the hook SpecialSearchGo($title, $term). Just check for the existence of the article and the category, and modify