Please or Register to create posts and topics.

Categories URL name issue when edited

Hello,

For example, I had Apple Category name and had url example.com/forum/forum/apple.

I’ve changed the Categeory name to Orange and the url still have example.com/forum/forum/apple.
It is supposed to be example.com/forum/forum/orange.

Thanks.

Hello @daron4ever

This behavior is by purpose. In your case the string “apple” is the unique slug for this forum. You can also see it as a unique ID which is used for SEO friendly URLs. Those unique slugs get generated when you create a new forum or topic and cant be renamed after it.

The reason for this is simple. If you decide to rename a unique slug after a while, all links to this forum/topic in search-engine and also inside other forum-posts or websites will not work anymore because they refer to an invalid slug.

If you really need to change it there are two options:

  • Create a new topic/forum and delete the old one. Move existing topics inside that new forum.
  • Or manually change the slug-value inside the wp_forum_topics/wp_forum_forums tables to another unique value which does not exist yet in your database.
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

@asgaros,

I updated slug from wp_forum_forums and working good.

I just want to know the slug should use encoding character for non-English?
I tried to update to non-English character without encoding and it didn’t work, but the language set is utf8mb4_unicode_520_ci for the slug attribute.

Thanks.

Hello @daron4ever

No, for slugs you have to 100% ensure that you use latin-only characters. No special characters, no spaces, no case-sensitive, etc. It is only allowed to look like this my-example-slug. If you use other characters the slug cannot be used anymore inside browsers for urls making your content unaccessible. So if you manually change this be aware of those risks and check it carefully after it. Also please keep in mind that you cannot use a slug twice – every slug must be unique!

daron4ever has reacted to this post.
daron4ever
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!