Change Category Main URL
Quote from MakerNoids on May 21, 2018, 3:26 amCurrently I have my forum shortcode on a page named “forums”. So that makes the URL www.example.com/forums. But once I go into a category it is: www.example.com/forums/forum/category. How can I get rid of the second “forum”.
Currently I have my forum shortcode on a page named “forums”. So that makes the URL http://www.example.com/forums. But once I go into a category it is: http://www.example.com/forums/forum/category. How can I get rid of the second “forum”.
Quote from Asgaros on May 21, 2018, 12:15 pmHello @makernoids
Your forums base-url is: http://www.example.com/forums
The urls are in this format: base-url/view/name
As you can see the second “forum” keyword is the name of the view because you are inside a forum. Inside a topic it would be “topic/name”, inside a profile it would be “profile/name”. So you cannot get rid of it because otherwise it would be not possible for the system to recognize if the name belongs to a forum, a topic or a username.
Hello @makernoids
Your forums base-url is: http://www.example.com/forums
The urls are in this format: base-url/view/name
As you can see the second “forum” keyword is the name of the view because you are inside a forum. Inside a topic it would be “topic/name”, inside a profile it would be “profile/name”. So you cannot get rid of it because otherwise it would be not possible for the system to recognize if the name belongs to a forum, a topic or a username.
Quote from MakerNoids on May 21, 2018, 3:16 pm@Asgaros is there anyway that I can rename it?
@Asgaros is there anyway that I can rename it?
Quote from Asgaros on May 21, 2018, 8:04 pm@makernoids
There is no easy way. In fact that would require a lot of code-changes in the view-detection and link-generation logic which you have to re-apply after every update. As a side-effect all links inside your posts which point to other topics would not work anymore as well as existing links in search-engines. To prevent this you have to implement a custom 301-redirect-function as well to ensure backward-compatibility.
Maybe I can add some configuration-options in a future update which could take care of all this kind of stuff but it might take a while until this will find its way into the plugin.
There is no easy way. In fact that would require a lot of code-changes in the view-detection and link-generation logic which you have to re-apply after every update. As a side-effect all links inside your posts which point to other topics would not work anymore as well as existing links in search-engines. To prevent this you have to implement a custom 301-redirect-function as well to ensure backward-compatibility.
Maybe I can add some configuration-options in a future update which could take care of all this kind of stuff but it might take a while until this will find its way into the plugin.
Quote from MakerNoids on May 21, 2018, 8:05 pm@Asgaros Thank you for the information!
@Asgaros Thank you for the information!
Quote from riseagainst on June 8, 2018, 2:40 pm@Asgaros I have the same issue, except, my website is new and has no users / post yet, meaning I can delete everything and start over.
How can I fix this?
@Asgaros I have the same issue, except, my website is new and has no users / post yet, meaning I can delete everything and start over.
How can I fix this?
Quote from Asgaros on June 8, 2018, 3:31 pmHello @riseagainst
What kind of issue you exactly mean? As described before you cannot get rid of the term forum because it is the name of the view and the system needs it to determine if you are inside a forum, a topic or something else.
Hello @riseagainst
What kind of issue you exactly mean? As described before you cannot get rid of the term forum because it is the name of the view and the system needs it to determine if you are inside a forum, a topic or something else.
Quote from riseagainst on June 8, 2018, 3:36 pm@Asgaros Basically, I just want to eliminate the second term ‘forum”. I thought from your answer it was difficult in his case because of redirections, but in my case, since the forum is empty, I can move it to a different page, delete it, restart.
Summarizing, mine also says forum/forum/topic – I want to eliminate the second forum, to forum/topic
@Asgaros Basically, I just want to eliminate the second term ‘forum”. I thought from your answer it was difficult in his case because of redirections, but in my case, since the forum is empty, I can move it to a different page, delete it, restart.
Summarizing, mine also says forum/forum/topic – I want to eliminate the second forum, to forum/topic
Quote from Asgaros on June 8, 2018, 4:02 pm@riseagainst So basically your first forum is the slug of your page and the second forum is the slug of the view. The view-slugs cannot get removed because otherwise the forum is not able to figure out if you are in a forum/topic/profile/etc.
What you can do is to change the slug of your page to something like community.
@riseagainst So basically your first forum is the slug of your page and the second forum is the slug of the view. The view-slugs cannot get removed because otherwise the forum is not able to figure out if you are in a forum/topic/profile/etc.
What you can do is to change the slug of your page to something like community.
Quote from riseagainst on June 8, 2018, 4:06 pm@asgaros Understood. Easy solution. Thank you sir!
@asgaros Understood. Easy solution. Thank you sir!