# Category slug met Unicode-tekens resulteert in redirect loop

**URL:** <https://meta.discourse.org/t/category-slug-containing-unicode-characters-results-in-redirect-loop/169788>\
**Category:** Bug\
**Created:** [11 november 2020 om 00:36 UTC](https://meta.discourse.org/t/category-slug-containing-unicode-characters-results-in-redirect-loop/169788 "2020-11-11T00:36:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [11 november 2020 om 01:21 UTC](https://meta.discourse.org/t/category-slug-containing-unicode-characters-results-in-redirect-loop/169788/2 "2020-11-11T01:21:12Z")

</div>

> [@dan-barbulescu](#):
>
> This isn’t a show-stopper, but it can break things, so I’d suggest it should either be fully implemented or guarded against.

Some work has been done on this in the past, but I do not think the issue you ran into has been addressed. What I think happened is that you have the `slug generation method` set to ‘ascii’ and you directly entered a category slug that has non-ascii characters in it. I can reproduce that issue on my site with the `slug generation method` set to ‘ascii’ and the following text (`yetersizliği`) entered directly into the Category Slug field:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/7/b71585e7bb7b5e5bfc81a90cafd91f989988185a.png)

After saving the category:

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/2/c2cc9a5666b5098923aefcd837d70cddc04d9f8a.png)

Attempting to load that category list then fails.

If I don’t enter anything into the Category Slug field, DIscourse will create the slug correctly when the `slug generation method` is set to ‘ascii’.

With the `slug generation method` is set to ‘encoded’, Discourse handles creating the slug correctly both when I leave the Category Slug input empty and if I directly enter the non-ascii slug into the input.

So it seems that the issue is that when the `slug generation method` is set to ‘ascii’, non-ascii slugs can still be entered into the Category Slug field. This causes a redirect issue that can only be fixed from the Rails console.

---

_[View the full topic](https://meta.discourse.org/t/category-slug-containing-unicode-characters-results-in-redirect-loop/169788)._
