Cliquez sur le bouton Modifier de la page de catégorie pour accéder à la page 404

I know the cause and the temporary solution, but I will report it.

After the update, if any slug in the category is empty, it seems that somehow the encoded string is automatically assigned.

Example

This seems to be happening in a non-English environment. I was in a Japanese environment.
Any slugs will remain empty in the newly created category and there seems to be no problem

For reference, you can go to the edit screen by accessing this as a temporary solution.
Change the value of the number in the category accordingly.
https://example.com/c/5-category/edit/general

I’m not sure if this is just my problem or a common bug, but I hope it helps.

What Discourse version are you on?

I am using the latest 2.8.0.beta2

I installed it for testing in early June and was preparing for production.

cd /var/discourse
./launcher rebuild app

I tried this and it didn’t change.

category-bug

I was able to reproduce it in the above step.
Even with newly created categories, the category edit button causes a 404 error when using Unicode slugs.

Unicode slug example:日本語

Unicode

After this, as shown in the gif of the previous post, clicking the edit button on the category page returns a 404 error.

Hmm, je n’arrive pas à reproduire l’erreur 404 avec le paramètre de site méthode de génération d'identifiants défini sur encodé. Je pense que cela devrait être activé par défaut lorsque vous utilisez une option locale par défaut pertinente.

3 « J'aime »

Merci !

Je n’aimais pas les identifiants longs et je les avais désactivés auparavant.
Le fait de sélectionner « encode » comme méthode de génération d’identifiants a résolu l’erreur 404.
Dans une telle situation, je pense que cela aurait pu être évité en refusant les caractères multioctets ou en ajoutant une note d’avertissement.

Quoi qu’il en soit, il est étrange que la chaîne encodée ait été attribuée à la catégorie qui vidait l’identifiant…

Même problème ici. J’ai une catégorie nommée santé et je suppose que le é bloque la redirection vers la page d’édition.
Je vois ceci dans ma console :

Quelqu’un a-t-il trouvé une solution ?

2 « J'aime »

J’ai eu le problème.

Cela a résolu le problème. J’ai supprimé les accents de l’identifiant de catégorie.

1 « J'aime »