FilamentF
Filament12mo ago
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]))
Was this page helpful?