simple-php-router icon indicating copy to clipboard operation
simple-php-router copied to clipboard

route

Open AlexJMcloud opened this issue 2 years ago • 1 comments

When specifying the route '/{lang}/' and '/admin/' - the router selects the first match. Route '/admin/' - it completely ignores. How can I fix this behavior?

the same behavior is observed with other routes: '/{lang}/auth/login' and '/admin/auth/login/'. However, their controller is different.

AlexJMcloud avatar Oct 19 '23 19:10 AlexJMcloud

I opened it here because I didn’t receive a response in the fork with version php 8.1.

AlexJMcloud avatar Oct 19 '23 19:10 AlexJMcloud

Change the routes order. Load first the admin routes and then the dynamic language routes.

xJuvi avatar Apr 28 '24 07:04 xJuvi

Change the routes order. Load first the admin routes and then the dynamic language routes.

I wrote my own router. Sometimes it’s easier to do it yourself than to research crap code.

AlexJMcloud avatar Apr 29 '24 06:04 AlexJMcloud