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 ```php Tables\Actions\ViewAction::make() ->url(fn (Post $record): string => PostResource::getUrl('view', ['record' => $record->id]))...
Jump to solution
1 Reply
Solution
LeandroFerreira
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]))

Did you find this page helpful?