Page MenuHomePhabricator

Add aliases for "simple" language special pages on simplewiki
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do):
On simplewiki, there should be aliases (redirects) for Special pages in simple language, in particular Special:NewChanges, Special:ShowAnyPage, and Special:RelatedChanges, which should redirect to Special:RecentChanges, Special:Random, and Special:RecentChangesLinked.

An example of an alias used currently is Special:Contribs, which redirects to Special:Contributions.

Use case(s) (describe the actual underlying problem which you want to solve, and not only a solution):

Readers of simplewiki may look at the portlet links in the sidebar (which display New changes, Show any page, etc, instead of RecentChanges and Random), and later on try to enter that URL in the searchbar/browser URL bar, when it does not exist as a special page.

Event Timeline

Stang subscribed.

Seems a new file called ./languages/messages/MessagesSimple.php (not sure about this name) need to be created, and alias rule should be added inside like the following: (this patch might be helpful)

<?php
/** Simple English (Simple English)
 *
 * To improve a translation please visit https://translatewiki.net
 *
 * @ingroup Language
 * @file
 *
 */

$fallback = 'en';

$specialPageAliases = [
	'RecentChanges'          => [ 'NewChange' ],
	'Random'                 => [ 'ShowAnyPage' ],
	'RecentChangesLinked'    => [ 'RelatedChanges' ],
];

No, since Simple English is not a separate language.

Thanks for telling, too bad :(

It looks like the only solution for this is a JS hack or something similar :(

Readers of simplewiki may look at the portlet links in the sidebar (which display New changes, Show any page, etc, instead of RecentChanges and Random), and later on try to enter that URL in the searchbar/browser URL bar, when it does not exist as a special page.

Is there any examples of this happening?