On 10/14/2011 11:42 AM, John Vandenberg 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?
> 
> This could be useful on Commons where there is often have a well
> maintained category structure with better results than the search
> results, and gallery pages ([[foo]]) are not as well maintained.

I guess you could make some Javascript code, similar to Wiktionary's
Auto-Redirect. If you enter http://en.wiktionary.org/wiki/Technocracy
for example, you get redirected to
http://en.wiktionary.org/wiki/technocracy?rdfrom=Technocracy

See section "URL fixes" here:
http://en.wiktionary.org/wiki/MediaWiki:Common.js

I'm not sure whether it would work with Special:Search, though.

--Tobias

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to