Manual:$wgFileRedirects

Details
If enabled, MediaWiki checks redirects in Image: namespace.

Enabled unconditionally in 1.13.