Unique URLs in kirby

Any way i can have sub directory URLs be prepended with a random number?

So i have a folder named /ads/ each url under it would have /{rand}/title/

What is your use case?

My users will be posting adverts to the site, so instead of /ads/{page title}/ which could lead to problems. Id like /ads/{uniqueID}/{page title}/ which would eliminate this.

One way of doing this would be to create a folder with a unique id and then within that folder a subfolder with the title.
Another option would be to prepend/append a unique number to the title of each subpage, when prepending you have to make sure not to separate number and title with a dash, otherwise this would be regarded as a visibility flag.

BTW: When a topic has been answered, may I kindly ask you please give feedback if it has answered your question and mark it as solved. There are now 4 open topics created by you… Thank you.

Brill, many thanks. Missed the part about prepending. This works.