Page MenuHomePhabricator

[[Special:Search/Foo]] should have the internal page title "Special:Search"
Closed, DeclinedPublic

Description

2 different links to the search: https://www.mediawiki.org/wiki/User:Subfader/Links_to_search

In the first the internal page title is "Special:Search/Foo" but should be "Special:Search" imo

  • Same page
  • Special pages don't have subpages
  • If treated as subpage, where is subnavi...
  • Bad for JS atm where you rely on wgPageName=="Special:Search" to be true no matter how a user may link to search somewhere

Event Timeline

Subfader raised the priority of this task from to Needs Triage.
Subfader updated the task description. (Show Details)
Subfader subscribed.
Subfader renamed this task from [[Special:Search/Foo]] sould be the internal page title "Special:Search" to [[Special:Search/Foo]] should have the internal page title "Special:Search".May 9 2015, 10:04 PM
Subfader set Security to None.

You need to add projects to this ticket.

I disagree. We should treat all special pages the same. Either they all should have the subpageless internal title, or none should.

Bad for JS atm where you rely on wgPageName=="Special:Search" to be true no matter how a user may link to search somewhere

That wouldn't work due to localized special page names anyways. You should be using mw.config.get('wgCanonicalSpecialPageName') which will always be Search.

Aklapper triaged this task as Lowest priority.May 20 2015, 5:04 PM
matmarex claimed this task.
matmarex subscribed.

Per commenters above.