Kirby 3 -> 4 Layout table title not giving relative url to file

I’ve recently updated a website to K4 and it’s working fine so far.
I have a table layout for my images; if I don’t set the title field to custom, the url works fine:

Capture d’écran 2024-04-28 à 16.10.47
Capture d’écran 2024-04-28 à 16.10.53

But if I set my blueprint to

      gallery:
        headline: Images
        type: files
        layout: table
        columns:
          title:
            label: Date
            value: "{{ file.date }}"

the link seems to fit the given text field. It didn’t work this way in K3; Even if the date was displayed, you could still get the relative url to the file.

Capture d’écran 2024-04-28 à 16.09.18
image

Is this an issue? or did I do something wrong here?

Thanks!

any up on that? Didn’t seem to find a solution here…

Best option for the moment is to set the type to html and the value to a custom method that returns the link to the file, e.g.

        columns:
          title:
            label: Date
            type: html
            value: "{{ file.getLink }}"

Then filemethod:

	'fileMethods' => [
		'getLink' => function () {
	
			return '<a href="' . $this->panel()->url() . '">' . $this->date() . '</a>';
		}
	],

Thanks texnixe, is this related to K4?