On Sat, Oct 15, 2011 at 4:33 AM, Daniel Barrett <[email protected]> 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, &$term). Just check for the existence of the article > and the category, and modify the title correspondingly.
It looks like there is some code to check for an appropriate page, with a bit of fuzzy logic. e.g. there is no enwp page "1964 Brinks Hotel Bombing" with a capital B in Bombing http://enwp.org/1964_Brinks_Hotel_Bombing however Special:Search will go directly to the right page http://enwp.org/Special:Search/1964_Brinks_Hotel_Bombing I think it would be useful to have an array of namespaces to automatically redirect to. On Wikisource it would be nice if the 'Author' namespace was part of this "did you mean" automatic redirection. e.g. http://enws.org/Special:Search/Mark_Twain could take the browser directly to http://en.wikisource.org/wiki/Author:Samuel_Langhorne_Clemens This would remove the need to have a "author=yes" parameter on enwp {{Sister project links}} -- John Vandenberg _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
