Problem/Motivation

As mentioned in https://www.drupal.org/project/linkit_media_library/issues/3250509, the media/id URL isn't the most user-friendly way of showing what file is being used. It would be nice to have the web-accessible URL for a stream to an external or local file instead.

Proposed resolution

A combination of https://www.drupal.org/project/linkit_media_library/issues/3250509 and https://www.drupal.org/project/linkit_media_library/issues/3239884, with the href being changed into the web-accessible URL.

Comments

saraah.jacobs created an issue. See original summary.

saraah.jacobs’s picture

StatusFileSize
new1.52 KB
saraah.jacobs’s picture

Issue summary: View changes
saraah.jacobs’s picture

StatusFileSize
new2.21 KB

Added patch from issue #3239884 to show title

saraah.jacobs’s picture

dagim@innocent.com’s picture

Status: Active » Needs review
StatusFileSize
new2.06 KB

Modifying the patch to generate file path for image, document, audio and video.

Status: Needs review » Needs work

The last submitted patch, 6: 3254047-5.patch, failed testing. View results

dagim@innocent.com’s picture

tim@lammar.be’s picture

StatusFileSize
new2.55 KB

Newer version of patch 4 (I believe 5 missed some parts).

bramdriesen’s picture

Status: Needs work » Reviewed & tested by the community

We're using this patch on multiple projects to fix this issue.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 9: 3254047-9.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

smustgrave’s picture

Status: Needs work » Postponed (maintainer needs more info)

Is this not a duplicate of the 2 issues mentioned? Feels like something that would need configuration options too because this seems to make the assumption that all the media item holds is a file but it could be whatever.

smustgrave’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

If not a duplicate feel free to re-open.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.