How to change the slug of an article without folders

Hello, Is it possible to remove the concept of folders when using the “slug” frontmatter’s parameter?

When I use it, it only changes the part after the folders, I would like it to change the whole url by my specific slug parameter.

Is that possible?

Thank you.