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
return redirect()->route('filament.manager.pages.dashboard');
return redirect()->route('filament.manager.pages.dashboard');
, 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:
This was caused by the request that sent the user to my route being done by wire:navigate
Jump to solution
1 Reply
Solution
Citizen
Citizen3w ago
This was caused by the request that sent the user to my route being done by wire:navigate

Did you find this page helpful?