Custom code to add a CMS collection into a folder

Hello, I will know if it is possible for you to place a CMS collection in a folder with custom code. In the style “www.https://monsite/folder/blog(CMS)/blog-article

Today it is impossible to do, and several other community requests explain it very well. Anyone know how we could do this with custom code, is this possible?

It is really important for me to be able to put a CMS collection in a folder. It doesn’t matter how.