If I call a url without a slash at the end, the URL works as well. I need to disable this rule so that URLs work only with a slash at the end, as defined in the router. In debug mode, the routing tab - you can see that all rules are without a slash at the end. Please, give me an advice.
As I wrote, I need a slash at the end. If I clear the cache, the problem is the same, routing variables are still without a slash at the end. Is it possible to set what I have written in the router so that it respects the rules?
I haven’t tried because it is a 301 redirect. I need the router to work as I define it. The page /page-test/ works, but if I have a paginator, the links in it refer to /page-test?page=2, etc., how do I make a slash in the paginator? Without slashing my paging doesn’t work.
And why not see a slash in the debug router when I have it in my code?