JoeClark replied

421 weeks ago

I can do this:

if(str::contains($_SERVER['REQUEST_URI'], '/my-special-url')) {
// Include some files
}
It would in one way be better to fetch the url with a route, but by the time I run the route it will be too late. I need to run it directly.

Is there a nicer way instead of the code above that runs directly (not a route)?

Please help…

I didn't find the right solution from the Internet.
References
https://forum.getkirby.com/t/check-url-early/6499
Transportation Management Video
Please log in to post a reply.