Controller Issue

I’ve got forms on a series of custom pages. They post to themselves and the controller handles the posted data. They all grouped into in custom-pages. Everything works well.

Once I remove the /custom-pages/ segment from the URL via URL hooks the controller no longer works. What am I missing?

You probably mean routes, right? By default, routes only answer to the GET method, not to POST requests. You’d have to explicitly add the method attribute with the POST method.

https://getkirby.com/docs/guide/routing#methods

Doh. Yep, it was that easy. Thanks @texnixe!