Boost Posted February 28, 2023 Share Posted February 28, 2023 Hi, The processblog module is great, but there is one thing that bugs me. It's the URL structure. Today I use: /mysite/example-post/ /mysite/categories/example-categories/ Would it be possible to remove the "categories" from the URL? I'd like to accomplish the following: /mysite/example-categories/example-post Thanks! Link to comment Share on other sites More sharing options...
Gideon So Posted February 28, 2023 Share Posted February 28, 2023 Hi @Boost This may help. Gideon 1 Link to comment Share on other sites More sharing options...
Boost Posted February 28, 2023 Author Share Posted February 28, 2023 Thank you. Link to comment Share on other sites More sharing options...
hassanizhar Posted February 28, 2023 Share Posted February 28, 2023 Yes, it's possible to remove the "categories" from the URL structure in the processblog module. Here's how you can do it: In the ProcessBlog module configuration, go to the "Categories" tab. Edit the "Template for category URLs" field by replacing "categories/" with an empty string. For example, if the current value is: /mysite/categories/{slug}/ change it to: /mysite/{slug}/ Save the changes. Next, edit the "Template for post URLs" field by adding "{category}/" before the "{slug}" placeholder. For example, if the current value is: /mysite/{slug}/ change it to: /mysite/{category}/{slug}/ Save the changes. Finally, regenerate the URLs for all your posts and categories by going to the "Tools" tab and clicking on the "Regenerate URLs" button. After completing these steps, your category URLs will be in the format "/mysite/example-categories/" and your post URLs will be in the format "/mysite/example-categories/example-post/". The "categories" part of the URL will be removed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now