© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
wazkaz

Redirect parameter loss

Hello, can anyone exprienced that when you make a redirect and pass a parameter to it, it will lose at some point. That point is when an afterStateUpdated() function is ran. I query the parameter using: request()->query('maintenance'). The parameter in the url is there but the request()->query('maintenance') returning null.
Solution
try to add a property in your page

#[Url]
public $maintenance = null;
#[Url]
public $maintenance = null;


...
->afterStateUpdated(function (Page $livewire) {
    //$livewire->maintenance
})
...
->afterStateUpdated(function (Page $livewire) {
    //$livewire->maintenance
})


https://livewire.laravel.com/docs/url
Laravel
URL Query Parameters | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
URL Query Parameters | Laravel
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

How to redirect to Another resource module with tableFilters parameter .
FilamentFFilament / ❓┊help
3y ago
Missing required parameter for edit route redirect after creation error
FilamentFFilament / ❓┊help
3y ago
Redirect
FilamentFFilament / ❓┊help
3y ago
Redirect
FilamentFFilament / ❓┊help
3y ago