I am in the process of developing a Custom Module for my Magento 2 web store.
The module will be a forum, I am developing this from scratch as it will require integrating with an existing custom module I have developed to share user created content.
In the forum, I wish to have URLs specific to each Post/Thread. For example:
www.mywebsite.com/Forum/Category/PostTitle
This will keep the urls clean, allowing users to quickly access a specific post or category without navigating through the website.
The data will be stored in our magento database and so the variables for the URL will need to come from there.
An example of what i wish to implement is also used on Stack Exchange; The url for this question is:
https://magento.stackexchange.com/questions/209504/custom-module-dynamic-url
Where the last part of the url custom-module-dynamic-url
is the title of my question.
I have drawn up a rough diagram of what I wish to create.
https://repository.genmymodel.com/darryl3/Forum
How would I go about implementing such a feature?
Thanks.