Page MenuHomePhabricator

Special:Properties page should link to "action=view" for special properties
Closed, ResolvedPublic

Description

For some reason, the Special:Properties page links to "action=view" for regular properties whose page hasn't been created yet, while it links to "action=edit" for special properties whose page hasn't been created yet. It would be nice if it could link to "action=view" for both; in other words, if it linked to:

http://discoursedb.org/w/index.php?title=Property:Has_type&action=view

...instead of:

http://discoursedb.org/w/index.php?title=Property:Has_type&action=edit&redlink=1


Version: unspecified
Severity: enhancement

Details

Reference
bz22442

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:54 PM
bzimport set Reference to bz22442.

Replaces edit with view

Links to regular Property pages have "action=view" because the link is made using
$proplink = $linker->link( $title, $label, array(), array( 'action' => 'view' ) );

But links to Special Property pages are made differently, My patch serves the purpose, but if you want it to be done differently let me know.

Attached:

This has been fixed, however the display of Special:Properties is being fixed in https://gerrit.wikimedia.org/r/#/c/31024/