See the bottom of the given page, that "View this page on regular Wikipedia".
This link is bad.
Version: .5
Severity: major
URL: http://zh.m.wikipedia.org/wiki/%E4%BA%A4%E6%B5%81%E9%9B%BB
See the bottom of the given page, that "View this page on regular Wikipedia".
This link is bad.
Version: .5
Severity: major
URL: http://zh.m.wikipedia.org/wiki/%E4%BA%A4%E6%B5%81%E9%9B%BB
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
ninniuz wrote:
The problem is the following:
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/
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)
cbm.wikipedia wrote:
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.