Infolist link not clickable

I have added a link to an infolist using the code from the documentation and it there are no errors its just not creating a clickable link. Sure I'm jusrt being dumb but cant see why... Thanks anybody! TextEntry::make('Add Item') ->url(fn (Order $record): string => route('createItem', ['id' => $record])),
Solution:
```php use Filament\Infolists\Components\Actions; use Filament\Infolists\Components\Actions\Action; .....
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira3mo ago
use Filament\Infolists\Components\Actions;
use Filament\Infolists\Components\Actions\Action;

..

Actions::make([
Action::make('addItem')
->link()
->url(fn(Order $record): string => route('createItem', ['id' => $record])),
])
use Filament\Infolists\Components\Actions;
use Filament\Infolists\Components\Actions\Action;

..

Actions::make([
Action::make('addItem')
->link()
->url(fn(Order $record): string => route('createItem', ['id' => $record])),
])
?
billyma121182
billyma121182OP3mo ago
Brilliant! Thanks so much.

Did you find this page helpful?