Custom page with parameter (independent from resource)

hi guys, im trying to create a custom global page that can take a record id from url for me to process, i dont want it to be bound with a resource since its independent page

also im working with multitenant, this is my current code

class DetailTeamScore extends Page implements HasTable
{
    use InteractsWithTable;  // ✅ Enables table functionality

    protected static ?string $navigationIcon = 'heroicon-o-clipboard-document-check';
    protected static string $view = 'filament.pages.scoreboard.detail-team-score';
    protected static ?string $slug = '/scoreboard/detail-team-score/{record}';
    protected static bool $shouldRegisterNavigation = true;
    public Team $record;


    public function mount(int | string $record): void
    {
        $this->record = Team::findOrFail($record); // ✅ direct model fetch
    }


i did register the page in the panel provider,
            ->pages([
                Pages\Dashboard::class,
                Scoreboard::class,
                DetailTeamScore::class,
            ])



and then i want to get this url in another custom page table like this

            ->recordUrl(
                fn(Model $record) =>
                DetailTeamScore::getUrl(['record' => $record->id])
            )


but i got hit by this error
Illuminate\Routing\Exceptions\UrlGenerationException
Missing required parameter for [Route: filament.admin.pages..scoreboard.detail-team-score.{record}] [URI: admin/{tenant}/scoreboard/detail-team-score/{record}] [Missing parameter: record].
Was this page helpful?