#Why do I get an error when redirecting from outside Filament? (but not when I redirect internally)

4 messages · Page 1 of 1 (latest)

old fjord
#

When I redirect from any laravel page using 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?

amber orioleBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

old fjord
#

Why do I get an error when redirecting from outside Filament? (but not when I redirect internally)

old fjord
#

This was caused by the request that sent the user to my route being done by wire:navigate