# Unicode-Kategorie-Slug verursacht 404-Fehler

**URL:** <https://meta.discourse.org/t/unicode-category-slug-cause-404-error/190636>\
**Category:** Bug\
**Created:** [17. Mai 2021 um 07:00 UTC](https://meta.discourse.org/t/unicode-category-slug-cause-404-error/190636 "2021-05-17T07:00:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)\
**Post date:** [17. Mai 2021 um 07:00 UTC](https://meta.discourse.org/t/unicode-category-slug-cause-404-error/190636/1 "2021-05-17T07:00:16Z")

</div>

Das tritt sowohl in meiner Produktionsinstanz als auch in der Entwicklungsumgebung auf.

## Reproduktionsschritte:

1. Eine Kategorie mit einem Unicode-Slug ändern oder erstellen.
2. Versuchen, die Kategoriestellungen zu bearbeiten.
3. Es tritt ein 404-Fehler auf.

Antwort von `http://localhost:4200/c/测试/find_by_slug.json`:

```plaintext
{
"errors": [
"Die angeforderte URL oder Ressource konnte nicht gefunden werden."
],
"error_type": "not_found",
"extras": {
"html": "<div class=\"page-not-found\">\n <h1 class=\"title\">Hoppla! Diese Seite existiert nicht oder ist privat.</h1>\n\n\n</div>\n\n\n\n<div class=\"row page-not-found-topics\">\n <div class=\"recent-topics\">\n <h2 class=\"recent-topics-title\">Neueste</h2>\n <div class='not-found-topic'>\n <a href=\"/t/welcome-to-discourse/7\">Willkommen bei Discourse</a>\n </div>\n <a href=\"/latest\" class=\"btn btn-default\">Mehr&hellip;</a>\n </div>\n</div>\n\n\n <div class=\"row\">\n <div class=\"page-not-found-search\">\n <h2>Diese Seite durchsuchen</h2>\n <p>\n <form action='/search' id='discourse-search'>\n <input type=\"text\" name=\"q\" value=\"\">\n <button class=\"btn btn-primary\">Suchen</button>\n </form>\n </p>\n </div>\n </div>\n\n <link rel=\"preload\" href=\"/assets/onpopstate-handler.js?1621234483.753622\" as=\"script\">\n<script src=\"/assets/onpopstate-handler.js?1621234483.753622\"></script>\n\n"
}
}

```

## Zusätzliche Informationen:

- Die Einstellung `unicode usernames` ist deaktiviert.
- Das Problem tritt auch weiterhin auf, wenn `unicode usernames` aktiviert ist.
- `allowed unicode username characters` = `\p{Han}`

---

_[View the full topic](https://meta.discourse.org/t/unicode-category-slug-cause-404-error/190636)._
