Page MenuHomePhabricator

Config setting `$wgDisableDoubleRedirectCreationErrors` to control throwing of double redirect creation errors
Open, Needs TriagePublicFeature

Description

Background:

Double redirects are a problem on wikis that don't have bots that will automatically fix them. The big WMF wikis all have bots, but remember that MediaWiki is not just for the WMF.

Proposal:

Set a new variable $wgDisableDoubleRedirectCreationErrors, set to false by default, which can control:

Note that the A → B → A redirect loop check is in includes/editpage/Constraint/DoubleRedirectConstraint.php after T384893: redirect loop error message suggests creating self-redirect instead was fixed, but it should always run even if $wgDisableDoubleRedirectCreationErrors=true.

Benefits:

MediaWiki can avoid irritating Wikipedia users with error messages for errors that will be fixed by bots.
MediaWiki can better serve 3rd party wiki users who should get warnings if they're messing things up.