Categories URL name issue when edited
Quote from daron4ever on July 23, 2018, 2:40 pmHello,
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,
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.
Quote from Asgaros on July 24, 2018, 12:37 amHello @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.
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.
Quote from daron4ever on July 25, 2018, 1:39 pm@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.
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.
Quote from Asgaros on July 28, 2018, 11:17 pmHello @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!
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!