Manual:$wgMaxRedirects

Details
Max number of redirects to follow when resolving redirects:
 * 1 means only the first redirect is resolved (default behavior).
 * 0 or less means no redirects are resolved.