Page MenuHomePhabricator

"Move this page" is linked to wrong URI
Closed, ResolvedPublic

Description

Author: mizusumashi

Description:
The text "Move this page" is linked to wrong URI in some skins - Classic, Cologne Blue and Nostalgia. "Move this page" in these skins is linked to URI like "http://en.wikipedia.org/w/index.php?title=Special:MovePage&target=TARGET" and TARGET is encoded if it is none-latin character string. But it may be encoded *twice*.

Example:
http://ja.wikipedia.org/w/index.php?title=%E8%B1%8A%E4%B8%AD%E3%82%B0%E3%83%A9%E3%83%B3%E3%83%89&uselang=en&useskin=standard

In this page "Move this page" is linked to "http://ja.wikipedia.org/w/index.php?title=%E7%89%B9%E5%88%A5:%E7%A7%BB%E5%8B%95&target=%25E8%25B1%258A%25E4%25B8%25AD%25E3%2582%25B0%25E3%2583%25A9%25E3%2582%25A6%25E3%2583%25B3%25E3%2583%2589". The value of "target" parameter is encoded string of "%E8%B1%8A%E4%B8%AD%E3%82%B0%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89".


Version: 1.16.x
Severity: enhancement

Details

Reference
bz20172

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 10:56 PM
bzimport set Reference to bz20172.

I would bet money this is related to all the SkinTemplate refactoring with Vector in recent weeks.

Nimish, want to try and track this down? Sounds like we got a double-escaping bug...

ngautam wrote:

Those skins all use the same function to generate the footer, but I imported the article to my local wiki (since I don't have move permissions on the japanese wikipedia) and used the skins...the links worked fine. Do you think it might be a local setting on the ja wiki?

mizusumashi wrote:

Thank you for your attention this bug.

At least enwp have same problem.
See:
[[w:en:User:Mizusumashi/workspace/豊中グラウンド]]
http://en.wikipedia.org/wiki/User:Mizusumashi/workspace/%E8%B1%8A%E4%B8%AD%E3%82%B0%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89?useskin=standard

In this page the "target" value of "Move this page
" is double-escaped.

Additionaly, I don't mind if anyone move this page.

mizusumashi wrote:

Sorry, I wanted to say "Thank you for your attention to this report". I'm not sure this is a bug or not.

*** This bug has been marked as a duplicate of bug 20027 ***