© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
marcosmarcolin

Redirect with ->url() with bulk action?

I have a table and I would like to redirect to a route after selecting some records from the table.

I tried using ->url(), but it doesn't work, is it possible?

My code is this:

BulkAction::make('pdf')->label('Generate PDF')->icon('heroicon-o-document')
                    ->color('info')
                    ->url(fn ($records): string => route('step.pdf', ['steps' => $records]))
                    ->openUrlInNewTab()
BulkAction::make('pdf')->label('Generate PDF')->icon('heroicon-o-document')
                    ->color('info')
                    ->url(fn ($records): string => route('step.pdf', ['steps' => $records]))
                    ->openUrlInNewTab()


Any ideas on how to resolve it? I tried with Action also returning route, but it was not possible.

Thanks.
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

Redirect after bulk action
FilamentFFilament / ❓┊help
3y ago
bulk action
FilamentFFilament / ❓┊help
3y ago
Bulk Action
FilamentFFilament / ❓┊help
3y ago
Redirect to a url after action
FilamentFFilament / ❓┊help
2y ago