Page MenuHomePhabricator

Extension:CreateRedirect doesn't handle categories gracefully
Closed, ResolvedPublic


If you use this extension to create redirects to a category page, you categorize it with that category instead of redirecting.

$crRedirectTitle = $wgRequest->getText( 'crRedirectTitle' );
$wpTextbox1 = "#REDIRECT [[$crRedirectTitle]]\r\n";

Seems like we need to check for "Category:" in front, and prepend a colon. Or maybe, just maybe, use a Title object. (And doesn't edit page trim trailing whitespace anyway?)

Could be accomplished as part of T28898.

Event Timeline

labster created this task.Feb 10 2017, 5:44 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 10 2017, 5:44 AM

T28898#309499 implies that this extension is abandoned?

edwardspec closed this task as Resolved.Jan 22 2020, 11:26 AM

A colon is correctly prepended in the latest version (after T28898).