Closed jacksleight closed 1 week ago
Fixes https://github.com/statamic/cms/issues/11125
If the CP route is empty (ie. in headless mode with the CP at the root of the domain) the original request check that disables the default TrimStrings middleware fails. This PR fixes it by assuming all requests are CP requests if the route is empty.
Fixes https://github.com/statamic/cms/issues/11125
If the CP route is empty (ie. in headless mode with the CP at the root of the domain) the original request check that disables the default TrimStrings middleware fails. This PR fixes it by assuming all requests are CP requests if the route is empty.