© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•14mo ago•
2 replies
frame

Click ViewAction in RelationManager to view resource

With User hasmany Posts, If I have a UserResource\RelationManagers\PostsRelationManager how do I make its ViewAction to forward to ViewPost page, instead of showing the default modal popup?
Solution
if you have a PostResource, you can use a redirect

Tables\Actions\ViewAction::make()
    ->url(fn (Post $record): string => PostResource::getUrl('view', ['record' => $record->id]))
Tables\Actions\ViewAction::make()
    ->url(fn (Post $record): string => PostResource::getUrl('view', ['record' => $record->id]))
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 I could use view page of Parent Resource view in RelationManager ViewAction()
FilamentFFilament / ❓┊help
3y ago
RelationManager on View Resource
FilamentFFilament / ❓┊help
2y ago
Action inside Resource ViewAction blade view
FilamentFFilament / ❓┊help
3y ago
RelationManager in view
FilamentFFilament / ❓┊help
2y ago