Redirection Issue with Kanji in page URL

I started to get redirection loop issue whenever a page with Kanji in its url. For example when I tried to open
https://community.wanikani.com/t/%E7%8C%AB-cat-appreciation-thread-AKA-crazy-cat-people-unite/13057/343

(%E7%8C%AB is 猫)

I get this error page

Sometimes I can enter the page, sometimes I cant. I used two types of browser Chrome and Firefox, and different internet service providers too.

I have yet to exactly know how this happen, all I know is that this sometimes happen when a kanji is included in the URL

Any idea?

This is a known bug with Discourse that they’re supposedly working to fix.

2 Likes

Ah I searched the forum with “Redirect” as the search term, sorry for asking redundant topic

Any unicode character should trigger this (including emojis). However, the problem only seems to occur for me if I try to open the link in a new tab or window. If I open a thread directly in my notifications or one of the categories pages it loads as normal.

1 Like

Yup, it only happens if you try to open threads in new tabs / windows, or if you try to refresh existing ones. If you just follow URLs by left-clicking it works fine.

1 Like

I sometimes have it happen when you open a thread in the same tab. It usually loads fine though.

I just noticed they fixed the redirection issue with Kanji in the URL. The fix is quite simple (as far as I noticed up to now)… They simply remove the kanji from the URL itself.

Though I wonder what effect this will present if two URL somehow have the same title with only a different kanji

like
花 appreciation thread
and
字 appreciation thread

wouldnt both be /t/appreciation-thread ?

Anyway, Im glad it is fixed now

edit: actually its not only Kanji, but special characters

Every thread has its own identifying number alongside its title, so that shouldn’t be a problem. :slight_smile:

2 Likes

Not really a fix… More like we had to disable unicode slugging for the time being until a fix is in place. We’ll reimplement unicode in slugs once a fix is in place.

Topics have a unique ID, so slug conflicts aren’t an issue.

2 Likes

For those who are interested on the progress of the fix, see below:

1 Like

How can i miss something like that… Looks like im too focused on the title

At least it can be used now. Good luck on your fix and thanks.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.