Why do I get an error when redirecting from outside Filament? (but not when I redirect internally)
When I redirect from any laravel page using , the page loads but it looks wonky. All of the css is loading and there's no errors in the network tab. But, the console shows a whole bunch of errors:
Alpine Expression Error: Cannot read properties of undefined (reading 'isOpen')
Expression: "! $store.sidebar.isOpen"
Alpine Expression Error: error is not defined
Expression: "error"
Alpine Expression Error: Cannot read properties of undefined (reading 'groupIsCollapsed')
Expression: "! $store.sidebar.groupIsCollapsed(label)"
If I refresh or redirect from within filament to a filament page, it loads just fine. Is there a different way that I should be redirecting to filament?
Solution:Jump to solution
This was caused by the request that sent the user to my route being done by wire:navigate
1 Reply
Solution
This was caused by the request that sent the user to my route being done by wire:navigate