Page MenuHomePhabricator

in Experimental, some accents in urls have recursive problems
Closed, ResolvedPublic

Description

With Experimental settings on, I go to the following url:
https://en.m.wikipedia.org/wiki/Cr%C3%AApe

This gets rewritten as:
https://en.m.wikipedia.org/wiki/Cr%C3%83%C2%AApe

Upon each refresh, the size of the url increases until I end up with:
https://en.m.wikipedia.org/wiki/Cr%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%83%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%82%C3%83%C2%83%C3%82%C2%82%C3%83%C2%82%C3%82%C2%AApe

On the stock Browswer browser for Android, the page refreshes with each url on its own, meaning that the target article cannot even be viewed. On desktop, the urls only get rewritten and expanded upon each manual page refresh.


Version: unspecified
Severity: normal

Details

Reference
bz49647

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:54 AM
bzimport set Reference to bz49647.

Very strange. I also notice searching from Crepe on the main page mangles the URL as well.

This could be an issue in MobileFrontend or the History.js library we use.

I notice calling
History.replaceState( null, mw.config.get( 'wgTitle' ), decodeURIComponent( window.location.pathname ) );

instead of
History.replaceState( null, mw.config.get( 'wgTitle' ) )
fixes the reported problem (although pages loaded via the api also have this problem)

arggg encoding issues.

  • Bug 49804 has been marked as a duplicate of this bug. ***

In Dolphin this also seems to cause a redirect.

Going to "Ä" redirect to "Ã", then to "ÂÃ" etc.. until it ends up at "Bad
title". This only occurs in dolphin browser on my phone, and not in chrome, nor
in firefox.

(This can also happen on Chrome desktop)

Change 70953 had a related patch set uploaded by Jdlrobson:
Bug 49647: Take away History.js dependency

https://gerrit.wikimedia.org/r/70953

  • Bug 53455 has been marked as a duplicate of this bug. ***

Change 70953 merged by jenkins-bot:
Bug 49647: Take away History.js dependency

https://gerrit.wikimedia.org/r/70953