Problem/Motivation

The Acquia DAM Linkit substitution plugin doesn't handle different asset download configurations. The plugin currently assumes all DAM assets should use the acquia-dam:// URI scheme, but when the DAM source is configured to download assets locally, it should generate URLs to the local file instead.

Steps to reproduce

  • Create linkit plugin
  • Add media matcher with DAM media types
  • Add linkit plugin to CKEditor with Media entity URL substitution "Direct URL to Acquia DAM Assets"
  • Update any media type to use Download and Sync rendering method
  • Add content and link DAM media
  • Visit content, assets URL is CDN URL and not Local URL

Proposed resolution

  • Add logic to check the DAM source's download_assets configuration
  • When download is enabled, generate URLs from the local file entity
  • When download is disabled, maintain the existing acquia-dam:// URI behavior
  • Ensure backward compatibility with existing configurations

Issue fork acquia_dam-3570285

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajeshreeputra created an issue. See original summary.

rajeshreeputra’s picture

Title: LinkIt plugin to » LinkIt plugin: add download assets support for local file URLs and acquia-dam URIs

rajeshreeputra’s picture

Title: LinkIt plugin: add download assets support for local file URLs and acquia-dam URIs » Add support for local file URLs and CDN URIs in LinkIt plugin.
rajeshreeputra’s picture

Status: Needs work » Needs review

Requesting review.

rajeshreeputra’s picture

Merged!

rajeshreeputra’s picture

Status: Needs review » Fixed

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.