# 404 bei verschiedenen Kategorien

**URL:** https://meta.discourse.org/t/404-on-various-categories/130892
**Category:** Bug
**Created:** [13. Oktober 2019 um 10:55 UTC](https://meta.discourse.org/t/404-on-various-categories/130892 "2019-10-13T10:55:22Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![chrispanag](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrispanag/32/105853_2.png) [@chrispanag](https://meta.discourse.org/u/chrispanag)
#### Post date: [13. Oktober 2019 um 10:55 UTC](https://meta.discourse.org/t/404-on-various-categories/130892/1 "2019-10-13T10:55:23Z")

</div>

Hallo zusammen,

nachdem wir unser Forum auf Version 2.4.0beta6 aktualisiert haben, haben wir festgestellt, dass verschiedene Kategorien zu einer 404-Fehlerseite führen.

Wenn Sie diese 404-Fehlerseite erreichen und dann auf das Forum-Logo klicken (um zur Startseite zu gelangen), bleiben Sie weiterhin auf der 404-Seite. Wir vermuten daher, dass das Frontend in einen „fehlerhaften

---

<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: [13. Oktober 2019 um 17:36 UTC](https://meta.discourse.org/t/404-on-various-categories/130892/2 "2019-10-13T17:36:12Z")

</div>

Interessant, hast du eine Idee, @falco?

---

<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: [13. Oktober 2019 um 17:58 UTC](https://meta.discourse.org/t/404-on-various-categories/130892/3 "2019-10-13T17:58:20Z")

</div>

Oh, ich habe in meinem neuesten Patch möglicherweise die Kategorie-Slugs vergessen, da ich nur die Topic-Slugs behoben habe.

Ich werde mir das am Montag ansehen.

---

<div class="post-metadata">

### Author: ![azawawi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/azawawi/32/135777_2.png) [@azawawi](https://meta.discourse.org/u/azawawi)
#### Post date: [15. Oktober 2019 um 08:15 UTC](https://meta.discourse.org/t/404-on-various-categories/130892/5 "2019-10-15T08:15:22Z")

</div>

> [@Falco](#):
>
> in meinem neuesten Patch

Meinst du diesen Commit?

> <https://github.com/discourse/discourse/commit/76ab0350f19e72cf33395768a8ce6736fec9565e>
>
> When an admin changes the site setting slug\_generation\_method to
> encoded, we we…ren't really encoding the slug, but just allowing non-ascii
> characters in the slug (unicode).
> 
> That brings problems when a user posts a link to topic without the slug, as
> our topic controller tries to redirect the user to the correct URL that contains
> the slug with unicode characters. Having unicode in the Location header in a
> response is a RFC violation and some browsers end up in a redirection loop.
> 
> Bug report: https://meta.discourse.org/t/-/125371?u=falco
> 
> This commit also checks if a site uses encoded slugs and clear all saved slugs
> in the db so they can be regenerated using an onceoff job.

---

<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: [15. Oktober 2019 um 18:51 UTC](https://meta.discourse.org/t/404-on-various-categories/130892/6 "2019-10-15T18:51:02Z")

</div>

Ja, genau die.

Ich repariere, was bei den Kategorien in diesem PR kaputt ist:

> <https://github.com/discourse/discourse/pull/8191>
>
> A bunch of extra places to consider when dealing with encoded slugs.

Um ehrlich zu sein, bereue ich die ursprüngliche Lösung etwas, da sie zu viel Code ändert, um codierte URLs zu verarbeiten.

---

<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: [15. Oktober 2019 um 23:04 UTC](https://meta.discourse.org/t/404-on-various-categories/130892/7 "2019-10-15T23:04:00Z")

</div>

Ist das jetzt also vollständig behoben oder noch in Arbeit?

---

<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: [16. Oktober 2019 um 18:56 UTC](https://meta.discourse.org/t/404-on-various-categories/130892/8 "2019-10-16T18:56:54Z")

</div>

Ich habe exakt das gleiche Problem in meinem Forum :roll_eyes:, nachdem ich vor wenigen Minuten auf **2.4.0.beta6** [a37dafdd4d] aktualisiert habe.

Der Fehler 404 scheint nur in Kategorien aufzutreten, die „Accent

---

<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: [16. Oktober 2019 um 20:55 UTC](https://meta.discourse.org/t/404-on-various-categories/130892/9 "2019-10-16T20:55:53Z")

</div>

@TroyaNO @azawawi @chrispanag @Jeremie_Leroy Ich habe gerade eine weitere Runde mit Fixes gemergt. Bitte aktualisiert und schaut es euch an.

Außerdem schließe ich dies zugunsten von [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?u=falco)

---

<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: [16. Oktober 2019 um 20:56 UTC](https://meta.discourse.org/t/404-on-various-categories/130892/10 "2019-10-16T20:56:20Z")

</div>


