Forum breadcrumbs – You are here:Asgaros Support ForumSupportChange Category Main URL
Please or Register to create posts and topics.

Change Category Main URL

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”.

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.

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

@Asgaros is there anyway that I can rename it?

@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.

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

@Asgaros Thank you for the information!

@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?

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.

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

@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

@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 has reacted to this post.
riseagainst
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

@asgaros Understood. Easy solution. Thank you sir!

Asgaros has reacted to this post.
Asgaros