Page MenuHomePhabricator

Allow configuring redirects via Community Configuration
Closed, ResolvedPublic4 Estimated Story PointsFeature

Description

Goal

Let community members configure the Article Guidance redirect themselves.

Context

Redirection is controlled by these variables:

  • ArticleGuidanceRedirectEnabled - enables both the red link and the entry point redirects
  • ArticleGuidanceRedirectJuniorEditorsOnly - junior means fewer edits than ArticleGuidanceJuniorEditorThreshold (default 100)
  • ArticleGuidanceRedirectEntryPointTitles - set to the local wiki's article wizard
  • ArticleGuidanceRedirectRefererTitles - never used in production
  • ArticleGuidanceRedirectRefererCategories - never used in production

Solution

Expose ArticleGuidanceRedirectEnabled and ArticleGuidanceRedirectJuniorEditorsOnly on Special:CommunityConfiguration.

Design

NOTE: Exact copy is TBD

One section holding two checkboxes:

Guided article creation
These settings decide who is taken to the guided new-article experience instead of the standard editor.

  • Use the guided new-article experience When enabled, following a red link to a missing article opens the guided experience. Editors who prefer the standard editor can switch this off for themselves in their preferences.
  • Limit to newer editors This setting has an effect only while the setting above is on. When enabled, only editors below this wiki's newer-editor edit count get the guided experience, and everyone else keeps the standard editor.

Acceptance criteria

  • Special:CommunityConfiguration lists an "Article guidance" form with one section and exactly the two checkboxes above.
  • No other Article Guidance setting appears in the form. (As of writing this. It may change if other configuration is added concurrently)
  • Where the on-wiki page sets a value, the redirect follows it.
  • Where it does not, the redirect follows site configuration, unchanged from today.
  • The articleguidance-enable user preference is offered only while the effective value of ArticleGuidanceRedirectEnabled is true.

QA plan

Test on a local wiki with Community Configuration installed and site configuration enabling the redirect.

  • No config page: the form shows the site configuration values and the redirect still works.
  • Enabled on-wiki: red link goes to Special:NewArticle, title pre-filled.
  • Disabled on-wiki: red link goes to the standard editor, overriding site configuration.
  • Junior gate on: editors below the threshold redirect, editors above it do not.
  • Junior gate on but the main setting off: nobody redirects.
  • The "Use article guidance" user preference appears only while the main setting is on.
  • The main setting also governs the entry-point redirect, not just red links.

Event Timeline

SBisson triaged this task as High priority.
SBisson updated the task description. (Show Details)
SBisson added a project: LPL sprints.
SBisson edited projects, added: LPL sprints (S3 2026 September); removed: LPL sprints.

Change #1339049 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ArticleGuidance@master] config: Expose redirect settings in Community Configuration

https://gerrit.wikimedia.org/r/1339049

Change #1339054 had a related patch set uploaded (by Sbisson; author: Sbisson):

[integration/config@master] Zuul: [mediawiki/extensions/ArticleGuidance] Add CommunityConfiguration for phan

https://gerrit.wikimedia.org/r/1339054

Change #1339054 merged by jenkins-bot:

[integration/config@master] Zuul: [mediawiki/extensions/ArticleGuidance] Add CommunityConfiguration for phan

https://gerrit.wikimedia.org/r/1339054

Mentioned in SAL (#wikimedia-releng) [2026-09-10T18:55:39Z] <James_F> Zuul: [mediawiki/extensions/ArticleGuidance] Add CommunityConfiguration for phan for T437586

Change #1339049 merged by jenkins-bot:

[mediawiki/extensions/ArticleGuidance@master] config: Expose redirect settings in Community Configuration

https://gerrit.wikimedia.org/r/1339049

Nikerabbit subscribed.

Test on a local wiki with Community Configuration installed and site configuration enabling the redirect.

Was QA done or not? Please leave a notes if it was so that we know.

Nikerabbit set the point value for this task to 4.Wed, Sep 16, 10:14 AM
Nikerabbit changed the subtype of this task from "Task" to "Feature Request".
Nikerabbit changed the task status from Open to In Progress.Mon, Sep 21, 6:34 AM

QA has been completed now. Tested on local wiki all points below without issues. On production, as this has deployed already, the CommunityConfiguration extension correctly shows the new AG option gated to admin users (see image)

  • No config page: the form shows the site configuration values and the redirect still works.
  • Enabled on-wiki: red link goes to Special:NewArticle, title pre-filled.
  • Disabled on-wiki: red link goes to the standard editor, overriding site configuration.
  • Junior gate on: editors below the threshold redirect, editors above it do not.
  • Junior gate on but the main setting off: nobody redirects.
  • The "Use article guidance" user preference appears only while the main setting is on.
  • The main setting also governs the entry-point redirect, not just red links.

image.png (3,680×2,392 px, 1 MB)

This is resolved, question: I see it in TR and Simple English as well.