FileLink isn't creating links

I have a dataviewjs script that is producing a filtered table of notes. The query works well on Obsidian desktop, but isn’t producing a clickable link to the notes produced. I can’t quite tell why.

What I’m trying to do

// Get the filename of the current page 
const filename = dv.current().file.name; 

// Extract the year and month from the filename 
const [pyear, pmonth] = filename.split('-').map(Number); 

// Define your Dataview query using the extracted year and month 
const pages = dv.pages() 
	.where(p => p.type && p.type.includes("Trip")) 
	.where(p => p.Tripdate)
	.where(p => dv.date(p.Tripdate).year == pyear && dv.date(p.Tripdate).month == pmonth) 
	.sort(p => p.Tripdate, 'asc'); 

// Render the results as a table 

dv.table(["Trip", "Date"], 
	pages.map(p => [
		dv.fileLink(p.file.path, p.file.name),
		dv.date(p.Tripdate).toLocaleString("en-US", { month: 'short', day: 'numeric' }),
		])
); 

Things I have tried

The output shown looks correct, but without the required links:

Trip (2)
Salt Lake City, Utah soccer Kate June 13-18
Santa Barbara Soccer - ID Camp June 30th
Date
6/13/2024
6/30/2024

Can anyone help me determine why the output isn’t creating a link?

Try page.file.link or p.file.link instead of p.file.name.