© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
46 replies
Matthew

Possible livewire/filament bug in ->recordUrl() at table

According to the documentation user gets redirected upon clicking a row

However, I get redirected as soon as I load the page, without clicking anything.

Same thing happens when it's just for one column

class Dashboard extends Page implements HasForms, HasTable
{
    use InteractsWithTable;
    use InteractsWithForms;

    public function table(Table $table): Table
    {
        return $table
            ->query(Test::query())
            ->deferLoading()
            ->striped()
            ->columns([
                TextColumn::make('id'),
                TextColumn::make('x')
                    ->url("www.youtube.com", true),
                TextColumn::make('y'),
            ])
            ->filters([
                // ...
            ])
            ->actions([
                // ...
            ])
            ->bulkActions([
                // ...
            ])
            ->recordUrl(
                fn (Model $record): string => dd($record),
            );
    }
    protected static ?string $navigationIcon = 'heroicon-o-document-text';

    protected static string $view = 'filament.pages.dashboard';

    protected function getHeaderActions(): array
    {
        return [
            Action::make('Update')
                ->requiresConfirmation()
                ->color('info')
                ->action(function () {
                    //...
                })
        ];
    }
    //...
}
class Dashboard extends Page implements HasForms, HasTable
{
    use InteractsWithTable;
    use InteractsWithForms;

    public function table(Table $table): Table
    {
        return $table
            ->query(Test::query())
            ->deferLoading()
            ->striped()
            ->columns([
                TextColumn::make('id'),
                TextColumn::make('x')
                    ->url("www.youtube.com", true),
                TextColumn::make('y'),
            ])
            ->filters([
                // ...
            ])
            ->actions([
                // ...
            ])
            ->bulkActions([
                // ...
            ])
            ->recordUrl(
                fn (Model $record): string => dd($record),
            );
    }
    protected static ?string $navigationIcon = 'heroicon-o-document-text';

    protected static string $view = 'filament.pages.dashboard';

    protected function getHeaderActions(): array
    {
        return [
            Action::make('Update')
                ->requiresConfirmation()
                ->color('info')
                ->action(function () {
                    //...
                })
        ];
    }
    //...
}
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filament table in livewire
FilamentFFilament / ❓┊help
3y ago
Livewire/filament bug?
FilamentFFilament / ❓┊help
3y ago
Filament table in Livewire component!
FilamentFFilament / ❓┊help
2y ago
Filament table in Modal - livewire component
FilamentFFilament / ❓┊help
2y ago