Linkit for Link Field in 6.x – Media Entity direct download not working

Created on 7 July 2023, over 1 year ago
Updated 25 August 2023, over 1 year ago

Problem/Motivation

As a site user, I want to use the Linkit for Link field autocomplete to a media entity and have the resultant link be a direct download to the file. Right now we are linked to the "/media/[mid]" URL.

Steps to reproduce

1. Confirm "Standalone Media URL" box is checked at /admin/config/media/media-settings.
2. Confirm Linkit Profile has a media matcher and "Direct URL to Media File Entity" selected.
3. Confirm Link field has a form display of "Linkit"
4. Confirm Link field has a display of "Linkit"
5. Populate link field with media URL manually or via autocomplete.
6. Confirm on FE that URL is rendered the same "/media/[mid]" (even after a cache clear)

I saw a bunch of issues where this was fixed in 5.x but nothing about this working in 6.x. I looked pretty heavily through the issue queues and followed all of the steps to try and get this to work so hopefully this isn't PEBKAC :-/. I'm currently running 6.0.0-rc2 on Drupal 9.5.10. Thank you in advance for your support!

πŸ› Bug report
Status

Closed: duplicate

Version

6.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jds1 Hudson Valley, NY

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024