F
Filament2y 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 Zeus2y ago
->url(fn (): string => route('home'), shouldOpenInNewTab: true)
->url(fn (): string => route('home'), shouldOpenInNewTab: true)
Vp
VpOP2y ago
Thank you, it's working.. cannot find in docs
pocket.racer
pocket.racer2y ago
is ur spa mode enabled or not? heard some ppl have issues with open in new tab with spa mode enabled
Vp
VpOP2y ago
No, not enable spa

Did you find this page helpful?