# Topic with Japanese in URL doesn't redirect if URL doesn't perfectly match

**URL:** https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371
**Category:** Bug
**Created:** [August 10, 2019, 1:06am UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371 "2019-08-10T01:06:40Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 2, 2019, 1:36am UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/24 "2019-10-02T01:36:21Z")

</div>

I agree 1 is a better path to take, I would recommend continuing down this path

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 4, 2019, 6:51pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/25 "2019-10-04T18:51:48Z")

</div>

Pull request is up

[https://github.com/discourse/discourse/pull/8158](https://github.com/discourse/discourse/pull/8158)

---

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [October 12, 2019, 3:03am UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/26 "2019-10-12T03:03:17Z")

</div>

I see this was merged. How long does it usually take to get deployed to a hosted site?

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [October 12, 2019, 9:07am UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/27 "2019-10-12T09:07:50Z")

</div>

faced similar problem after we’ve updated to latest today. reporting here to see if it is the same bug. is it?

this topic doesn’t load and it gives us 400 bad request:

[https://padpors.com/t/6734](https://padpors.com/t/6734)

or this one opens up as a blank page:

[https://padpors.com/t/نقد-حرکتِ-«شکل-دادن-به-بانکی-از-پرسش‌‌ها-و-مسئله��/6841](https://padpors.com/t/%D9%86%D9%82%D8%AF-%D8%AD%D8%B1%DA%A9%D8%AA%D9%90-%C2%AB%D8%B4%DA%A9%D9%84-%D8%AF%D8%A7%D8%AF%D9%86-%D8%A8%D9%87-%D8%A8%D8%A7%D9%86%DA%A9%DB%8C-%D8%A7%D8%B2-%D9%BE%D8%B1%D8%B3%D8%B4%E2%80%8C%E2%80%8C%D9%87%D8%A7-%D9%88-%D9%85%D8%B3%D8%A6%D9%84%D9%87%E2%80/6841)

**update:** for the moment we’ve changed the slug generation method to ascii, as any topic with long topic length happened to open blank or with 400-error.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 12, 2019, 9:03pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/28 "2019-10-12T21:03:02Z")

</div>

Are we good on this @Falco?

---

<div class="post-metadata">

### Author: ![YaserAlnajjar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaseralnajjar/32/100729_2.png) [@YaserAlnajjar](https://meta.discourse.org/u/YaserAlnajjar)
#### Post date: [October 13, 2019, 1:12pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/29 "2019-10-13T13:12:36Z")

</div>

I confirm the bug has been fixed (just updated Discourse)

Thanks Discourse team ✌

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [October 13, 2019, 2:13pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/30 "2019-10-13T14:13:24Z")

</div>

I updated my discourse but I am still facing the same issue.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [October 13, 2019, 5:14pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/31 "2019-10-13T17:14:30Z")

</div>

Are you on tests-passed? How did you update?

---

<div class="post-metadata">

### Author: ![YaserAlnajjar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaseralnajjar/32/100729_2.png) [@YaserAlnajjar](https://meta.discourse.org/u/YaserAlnajjar)
#### Post date: [October 15, 2019, 9:50am UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/32 "2019-10-15T09:50:42Z")

</div>

I realized that some topics are showing `400 Bad Request`, examples

```plaintext
https://forums.coretabs.net/t/مشكلة-في-عمل-فورمة-تسجيل-بيانات-للمستخدم-بـ-دجانج%/3117
https://forums.coretabs.net/t/كيف-أغير-الواجهة-في-vue-حسب-الحالة-مسجل-دخول-غير-مسجل%/3109
https://forums.coretabs.net/t/مشروع-يضم-مبرمجين-لتطبيقات-الموبايل-مع-مبرمجين-ا%D/2843/9

```

The common thing is that they all have `%` symbol

While other “working” topics do not have that symbol.

- I tried putting the IP address of the server instead of `forums.coretabs.net`, and nginx shows the same error (instead of cloudflare).

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [October 16, 2019, 3:53pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/35 "2019-10-16T15:53:57Z")

</div>

> [@Stephen](#):
>
> Are you on tests-passed? How did you update?

Always via Discourse updater. The right way!

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [October 16, 2019, 3:56pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/36 "2019-10-16T15:56:27Z")

</div>

> [@Arta\_S](#):
>
> Always via Discourse updater. The right way!

That doesn’t really answer my question. Which version are you on according to /admin?

Did you visit /admin/update to force an update? You won’t be alerted unless a new beta release goes out and need to manually visit that URL to grab the incremental updates to tests-passed.

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [October 16, 2019, 4:41pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/37 "2019-10-16T16:41:35Z")

</div>

Hello @Stephen,

You are right. I wasn’t notified for this update, after visiting the upgrade page, there was a new update. It fixed my problem. Thank you @Falco for the fix.

-=-=-=- Update -=-=-=-  
After upgrade, some pages get 400 Error just like the problem @YaserAlnajjar is facing [here](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/32).

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 16, 2019, 8:51pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/38 "2019-10-16T20:51:22Z")

</div>

@Pad_Pors @YaserAlnajjar @Arta_S just merged another round of fixes, please update and check it out.

---

<div class="post-metadata">

### Author: ![TroyaNO](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@TroyaNO](https://meta.discourse.org/u/TroyaNO)
#### Post date: [October 16, 2019, 9:05pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/39 "2019-10-16T21:05:54Z")

</div>

> [@404 on various categories](https://meta.discourse.org/t/404-on-various-categories/130892/9):
>
> @TroyaNO @azawawi @chrispanag @Jeremie_Leroy just merged another round of fixes, please update and check it out. Also closing this in favor of [Topic with Japanese in URL doesn't redirect if URL doesn't perfectly match](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371)

Hi @Falco, I just updated and unfortunately the problem continues. 😧

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 16, 2019, 9:09pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/40 "2019-10-16T21:09:04Z")

</div>

Are you using `encoded` slug generation method, and was it set to that during the update?

---

<div class="post-metadata">

### Author: ![TroyaNO](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@TroyaNO](https://meta.discourse.org/u/TroyaNO)
#### Post date: [October 16, 2019, 9:12pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/41 "2019-10-16T21:12:48Z")

</div>

Honestly, I don’t know what method using … only that my forum is in Spanish language and after updating, the categories whose name bears “accent” show error 404.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 16, 2019, 10:26pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/42 "2019-10-16T22:26:09Z")

</div>

Oh my I spent so much looking into this, and looks like you are using `ascii` slugs. Please revert back to `encoded`.

---

<div class="post-metadata">

### Author: ![TroyaNO](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@TroyaNO](https://meta.discourse.org/u/TroyaNO)
#### Post date: [October 16, 2019, 10:57pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/43 "2019-10-16T22:57:18Z")

</div>

> [@Falco](#):
>
> Please revert back to `encoded` .

How should I do this? any guide or tutorial… thanks for you help.

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [October 16, 2019, 10:59pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/44 "2019-10-16T22:59:04Z")

</div>

Search the site settings `slug generation method` in your admin dashboard.

---

<div class="post-metadata">

### Author: ![TroyaNO](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@TroyaNO](https://meta.discourse.org/u/TroyaNO)
#### Post date: [October 16, 2019, 11:06pm UTC](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371/47 "2019-10-16T23:06:32Z")

</div>

Great, great, thanks! … I change for `encoded` and everything works now!

`Ascii` was the one by default … I still don’t understand what differences these make, but at least it works for me. 👏

[Previous page](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371.md?page=1)

[Next page](https://meta.discourse.org/t/topic-with-japanese-in-url-doesnt-redirect-if-url-doesnt-perfectly-match/125371.md?page=3)
