Last modified: 2010-02-10 21:34:04 UTC
See the bottom of the given page, that "View this page on regular Wikipedia". http://zh.wikipedia.org/w/mobileRedirect.php?to=http://zh.wikipedia.org/wiki/%26%23x4EA4%3B%26%23x6D41%3B%26%23x96FB%3B This link is bad.
works for me (Safari). What kind of browser are you using ?
At least it doesn't work for me with Opera Mini (on a smartphone). I took this URL on PC; maybe this URL differs from the one I got with Opera Mini.
Tested with Opera Mini and reproducible with Safari. Page: http://zh.m.wikipedia.org/wiki/字 Which is the bottom link from http://en.wikipedia.org/wiki/Zi "View this page" links to: http://zh.wikipedia.org/w/mobileRedirect.php?to=http://zh.wikipedia.org/wiki/%25E5%25AD%2597 This malformed URL lands me on page: http://zh.wikipedia.org/wiki/字 The URL should have been been http://zh.wikipedia.org/wiki/%E5%AD%97
%25E5%25AD%2597 decoded == %E5%AD%97 so it's URL encoded twice.
Its behaviors seem to differ from each other among browsers.
The problem is the following: # from _footmenu_simple.html.haml the href for that anchor is retrieved calling -> temp_url(@article.title) where def temp_url(path) %|#{redirect_url}?to=#{path_site}/wiki/#{path_encoded(path)}| end and def path_encoded(path) CGI::escape(path) end But path = @article.title is using HTML entities in the form "&#x<hex value>;" and when calling CGI::escape(path) those chars get URL encoded (that is using %<code> form). Before calling CGI::escape the @article.title should be HTML unescaped (note CGI::unescapeHTML is not working at all). Maybe you want to check http://po-ru.com/projects/html-entities/
*** Bug 21774 has been marked as a duplicate of this bug. ***
*** Bug 21473 has been marked as a duplicate of this bug. ***
i'll be fixing this. I'll find a way to retrieve the canonical pagename from the javascript options. At least that will be correct and safe.
I hope to have fixed this with: http://bit.ly/6Pb4v6 (not yet deployed) http://bit.ly/6SAXUG (not yet deployed)
The bit.ly links in the previous comment correspond to: http://github.com/hcatlin/wikimedia-mobile/commit/79408049e1aa35a07c18cb16aff423ecac834576 http://github.com/hcatlin/wikimedia-mobile/commit/55b503fd49add23863869e30ddf870ce31d2171c There is plenty of space in Bugzilla to make URL shortening unnecessary.
*** Bug 22045 has been marked as a duplicate of this bug. ***
Fix deployed now