Uh oh!
There was an error while loading. Please reload this page.
[6.x] Do not set the Inertia root view globally - #14942
Conversation
lazerg
commented
Jul 6, 2026
@jasonvarga mind reviewing this when you have a moment, it removes a redundant global Inertia root-view call that was leaking into host apps outside the CP. |
Thanks for the PR. We'll review it when we can. In the meantime, you can pull this PR into your project with a composer patch. |
jasonvarga
commented
Jul 6, 2026
Thanks for this — moving the rootView to One edge case: exception rendering for CP routes can happen before Pushed a follow-up commit that pins |
Uh oh!
There was an error while loading. Please reload this page.
CpServiceProvider::boot()set the Inertia root view globally withInertia::setRootView('statamic::layout'), so apps that render their own Inertia frontend outside the control panel inherited it and their pages (including Inertia error responses) rendered inside Statamic's CP layout. The control panel already sets its own root view via theHandleInertiaRequestsmiddleware on every CP route, so the global call isn't needed and just leaks into the host app.Fixes#14619