Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentβ€’11mo agoβ€’
1 reply
Mike Peters

Combination Record action with Action url not working

When a table has an action that opens a url, the "recordAction" to use this action as default action when the full row is clicked is not working.

            ->recordAction('open')
            ->actions([
                Action::make('open')->url(function (Model $someModel): string {
                    return SomeModelResource::getUrl(ContextEnum::EDIT->value, ['record' => $someModel]);
                }),
            ])
            ->recordAction('open')
            ->actions([
                Action::make('open')->url(function (Model $someModel): string {
                    return SomeModelResource::getUrl(ContextEnum::EDIT->value, ['record' => $someModel]);
                }),
            ])


The action above works on its own, so when you click the action the url is opened.
However, when I click the full row, this action is not triggered. When the action would have an ->action(), the
recordAction
recordAction
functionality does work correctly.
Anyone else experienced this or found a workaround?
I may repeat the url closure into
->recordUrl
->recordUrl
instead of
recordAction
recordAction
, but I don't like this repetition πŸ™‚
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel β€’ Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

URL not working in repeater action?
FilamentFFilament / β“β”Šhelp
2y ago
Action not working with requiresConfirmation()
FilamentFFilament / β“β”Šhelp
2y ago
Updating record with custom action
FilamentFFilament / β“β”Šhelp
2y ago
action not working
FilamentFFilament / β“β”Šhelp
3y ago