Page MenuHomePhabricator

Special:MyLanguage should be a valid redirect target
Closed, DuplicatePublic


Someone on Commons was complaining that you can't make redirects of the form #REDIRECT[[Special:mylanguage/foo]]

It seems like it would be nice to allow this.

I think the best way to go about doing something like this would be to add a method to SpecialPage class that subclasses can override. It could return self::REDIRECT_NOT_ALLOWED if never allowed (e.g. Special:userlogout, everything in $wgInvalidRedirectTargets), self::REDIRECT_AUTO which would do whatever $wgDisableHardRedirects is set to, and self::REDIRECT_ALWAYS which would always allow redirects.

Only downside is that the "redirected from" text would be missing, for these types of redirects, but I don't think that should stop us from allowing them.


Version: unspecified
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 1:52 AM
bzimport set Reference to bz49605.
bzimport added a subscriber: Unknown Object (MLST).
Bawolff created this task.Jun 15 2013, 2:36 AM

Request is reasonable. I think a such feature request should be created in core and added as blocker for this.

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 28 2015, 7:32 PM
Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptApr 9 2018, 4:42 AM