Hi, Netlify team!
We have an issue on our project. We have 2 paths like: /directory/[uid] and /directory/page-[pageNumber].
When we go to /directory/[uid] we need to show one page (for uid template), and when we go to /directory/page-[pageNumber] we need to show the same page as for /directory/index, but the path should be the /directory/page-2 for example.
It’s easy to do with next rewrites in next.config.js, because I can use regex there. But I can’t find the way to describe the same logic of rewrites in netlify.toml. I understand that the easiest way is to make something like directory?page=2, but it’s not accepted by our SEO team.
Is it possible to do it somehow?