Page MenuHomePhabricator

URL parameters do not work with pages that have "?" in their names
Closed, ResolvedPublic

Description

https://test.wikipedia.org/wiki/Bug%3F?action=history doesn't show the history page, unlike https://test.wikipedia.org/w/index.php?title=Bug%3F&action=history. From what I know about URL structure and MediaWiki, they should act the same. Do we have broken routing / rewrite rules or something?

Event Timeline

matmarex raised the priority of this task from to Needs Triage.
matmarex updated the task description. (Show Details)

Works for me.

Screen Shot 2016-01-20 at 18.18.50.png (700×1 px, 261 KB)

how does this "work for you" ?
the screenshot does not look to me like a history page. what am i missing?

peace.

Well the description is a little convoluted, but what I'm seeing is that the title of his test page is literally Bug%3F, where %3F is the ascii hex for ?. For a normal article name /wiki/Foo?action=history actually works*, but the presence of %3F at the end of the title breaks ?action=history. A better set of example URLs (to me anyways) is:

https://test.wikipedia.org/wiki/Bug%3F?x=y&action=history - works
https://test.wikipedia.org/wiki/Bug%3F?action=history - borked, shows article content instead of history

* - (although it's debatable whether it should - shouldn't we have one canonical action=history URL, and isn't it usually the ?title= form? but that's a side issue)

IKhitron renamed this task from https://test.wikipedia.org/wiki/Bug%3F?action=history doesn't show the history page, unlike https://test.wikipedia.org/w/index.php?title=Bug%3F&action=history to URL parameters do not work with pages that have "?" in their names.Sep 13 2017, 1:52 PM

I noticed another related bug while testing this, based on this example

https://test.wikipedia.org/wiki/Bug%3F?action=history - borked, shows article content instead of history

If you change the question mark to an ampersand, you'll get the correct page, but the page title is incorrect: https://test.wikipedia.org/wiki/Bug%3F&action=history will show the title Bug?&action=history.