"Wikitravel has a speed and convenience the books' publishers can only envy." Time Europe

Tech:Special page namespace with accented characters

From Wikitravel Shared
Jump to: navigation, search

What happens[edit]

There is a bug in Explorer. When I click on a page whose namespace contains a special character („Speciális”), then it takes me to an empty page with stupid title (for my user page: Speciális:Mypage). I have to change the right characters in the URL line to reach that page. (in WP, they had this problem at e-mail validation, don't know how they solved it.) can you fix this? Alensha 2006. október 21., 11:43 (EDT) Hey! On the top my User page and Talk page don't work, because they redirect me to a 'Speciális' page, with a title containing nonsense characters. üdv: Dorgan 2006. október 21., 12:45 (EDT)

This is one of two charset problems with hu:. We don't have a problem with this on ja: , which also has non-Latin chars in the special namespace name. --Evan 12:31, 22 October 2006 (EDT)

Ja: has the same problem. When IE6 login users click the link to My page on the top, they go to garbage page ja:lj¹åˆ¥:Mypage. ( In case of my talk, go to ja:lj¹åˆ¥:Mytalkpage. )

There is another problem related this. When I go to en: or shared:, the links point to Special:Mypage and Special:Mytalkpage before login, and the urls overrided with User:Tatata and User_talk:Tatata after login. In ja: and hu: cases, the links still point to Special namespace:Mypage and Special namespace:Mytalkpage after login.

Probably in all language versions which use non-Latin character set for the name of special namespace, it seems that string_replace() in the username.js does not work intendedly because of urlencode. -- Tatata 01:22, 22 June 2007 (EDT)

As of today, 5 language versions are still having this problem; he:, hi:, hu:, ja:, ru:. -- Tatata 22:52, 29 August 2007 (EDT)

When it happens[edit]

It happens always for me when I logged in with IE6. Usually I use FF :-) -- Tatata 01:22, 22 June 2007 (EDT)

What should happen[edit]

After log in, the links should not point to Special namespace":Mypage and Special namespace":Mytalkpage, but point to User namespace:user name and User_talk namespace:user name. -- Tatata 01:22, 22 June 2007 (EDT)

How to fix it[edit]

I guess that a modification of username.js is needed.

  • encode special namespace in set_specialns()

or

  • decode old_href, then encode new_href in replace_link_href()

I'm not familiar with JavaScript, so please inspect carefully. -- Tatata 01:22, 22 June 2007 (EDT)

See also[edit]

Related issues[edit]

Variants

Actions

In other languages