Custom `target` attribute in link Action

Not sure if this is an IBKAC but I can't set a custom target on a link Action. Here is the code
Action::make('link')
->extraAttributes([
'target' => 'does_not_work',
'random_shit' => 'this_works',
])
->link()
Action::make('link')
->extraAttributes([
'target' => 'does_not_work',
'random_shit' => 'this_works',
])
->link()
For some reason, the target attribute does not appear but anything else seems to work. Am I missing something? Is the target attribute filtered for some reason? (I don't want to use openUrlInNewTab() since I don't want to open it in a new tab)
1 Reply
ChesterS
ChesterS7mo ago
Don't know if it matters but this is a Filament\Infolists\Components\Actions\Action Ok I went though the code and (unless I'm missing something) it seems like the target is only set to _blank if you set openUrlInNewTab. That's unfortunate.