Relationship Manager: Open in same window (non-modal)

Say I have a UserResource and a PostResource. When I add a PostRelationManager, it opens posts in a modal. How can we make it display the full page Post instead of modal? PostRelationManager:
public function table(Table $table): Table
{
return PostResource::table($table);
}
public function table(Table $table): Table
{
return PostResource::table($table);
}
PostResource Actions:
->actions([
Tables\Actions\ActionGroup::make([
Tables\Actions\ViewAction::make(),
Tables\Actions\EditAction::make(),
]),
])
->actions([
Tables\Actions\ActionGroup::make([
Tables\Actions\ViewAction::make(),
Tables\Actions\EditAction::make(),
]),
])
When on the PostResource, it opens in the same page, but when using the relationship manager, it opens a modal. Been scouring the docs but not seeing it. Thanks!
1 Reply
ahinkle
ahinkleOP7mo ago
Ended up having to make some light changes to the action:
Tables\Actions\EditAction::make()
->url(fn (Post $record): string => PostResource::getUrl('edit', ['record' => $record]))
Tables\Actions\EditAction::make()
->url(fn (Post $record): string => PostResource::getUrl('edit', ['record' => $record]))
Want results from more Discord servers?
Add your server