I'm struggling to figure out how to create a dynamic url with support for locales.

Imagine a situation as follows: - There is a page called cookies with the slug "cookies" and template cookies.html - I want to make sure that if a user / client changes the slug, the URL /cookies would still load said template AND content.

I'm mainly trying to get a dynamic URL working where I for example can find a url based on a template.

I hope that makes any sense.