How I could use view page of Parent Resource view in RelationManager ViewAction()
I added url() to the ViewAction like this.
Tables\Actions\ViewAction::make()->url(fn (Model $record): string =>
route(
'filament.app.resources.user.users.view',
['record' => $record, 'tenant' => $record->team?->id]
))
It works but I had to stick with a route name 'filament.app.resources.user.users.view' as above. However, I this view should be able to view in different panels. How I could get the panel name in this RelationManager class. Or is there any way I can make this uses the same UserResource\Pages\ViewUser for this.
1 Reply
Solution
I got it now, using UserREsource::getUrl()