Redirect not working

PHP project

I have a page called dashboard with a security enforcer enabled.
Not logged in it it set to login.php. This page works. If you visit the page directly it takes you to the login.php.

I have another page called tickets, which has a route of /tickets/:ticket accepting a parameter. If you visit the http://url/ticket/1177 (which is an actual ticket) you get what looks like a forever loop of trying to redirect to login.

If i visit the ticket page with ticket.php?ticket=1177, it redirects correctly. So there is something broken or wrong with my routes. But i can’t find it.

Community Page
Last updated: