Slugs error for persian language


#1

i have some problem whit use slugs

 Slug is already in use

but i dont have any similar slug and used slug


(Jens Maier) #2

Just like with topics, category slugs can only use latin characters and dashes. The arabic characters that would make the slug unique are most likely silently removed, and the remaining empty or default slug is the same for several categories, hence the error.


(Allen - Watchman Monitoring) #3

In our Rails app, in cases when we need to make a slug from an arabic title, we generate a random hash. Don’t know if that’d be applicable here.


(Gerhard Schlager) #4

As elberet mentioned you can only use latin characters for slugs.
Anyway, Discourse shouldn’t silently change the slug provided by the user. It should at least show an appropriate error message.

I guess if the following feature would be implemented, arabic slugs could work as well.


(Régis Hanol) #5