Closed (outdated)
Project:
Drupal core
Version:
9.5.x-dev
Component:
media system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Oct 2020 at 00:02 UTC
Updated:
23 Aug 2022 at 06:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chrisfree commentedHere is a patch to fix the preferred syntax issue.
Comment #3
markdorisonThis change looks good to me. I added an additional wrapping of the replacements array to increase readability.
Comment #4
larowlanCan you elaborate on why this is needed, if the link is a constant, is there a need to use :link?
I understand if the link were based on a variable, but here it's not.
In addition this will create a new string and break existing translations, so we need to have a reason to do it.
Comment #5
chrisfree commentedI must be misunderstanding when to use
:link. I was working on #3173180: Add UI for 'loading' html attribute to images and was given the impression that using :link was the best practice. Now, after digging a bit, I see now that the filtering/escaping:will trigger is probably not necessary when the link is static. Is that correct?I assume that means the other suggestion (comment #18 on #3173180: Add UI for 'loading' html attribute to images), is incorrect?
Comment #10
quietone commentedI agree with #4 that in this case it doesn't matter but it would be good practice to use the :link (the docs say to use ':' for attributes).
But the line being changed in the patch was modified in #3142818: Remove target=_blank from links in media settings forms making this outdated.