F
Filament15mo ago
Vp

Table open url in new tab

I have below code, but after I click the link, it cannot open to new tab
Tables\Actions\Action::make('view')
->color('warning')
->openUrlInNewTab() // this line doesn't open new tab
->icon('heroicon-o-arrow-top-right-on-square')
->url(fn (): string => route('home')),
Tables\Actions\Action::make('view')
->color('warning')
->openUrlInNewTab() // this line doesn't open new tab
->icon('heroicon-o-arrow-top-right-on-square')
->url(fn (): string => route('home')),
Is this a bug or do we need to do some extra. If so, what should be..
4 Replies
Lara Zeus
Lara Zeus15mo ago
->url(fn (): string => route('home'), shouldOpenInNewTab: true)
->url(fn (): string => route('home'), shouldOpenInNewTab: true)
Vp
VpOP15mo ago
Thank you, it's working.. cannot find in docs
pocket.racer
pocket.racer15mo ago
is ur spa mode enabled or not? heard some ppl have issues with open in new tab with spa mode enabled
Vp
VpOP15mo ago
No, not enable spa
Want results from more Discord servers?
Add your server