Closed (fixed)
Project:
Prototype
Version:
5.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2026 at 17:31 UTC
Updated:
12 May 2026 at 20:50 UTC
Jump to comment: Most recent
The CTA component calls the wrong prop names for cta.twig on prototype:link with link_link and link_icon, while the link.twig contains link and icon. The with_content = false is only passing the variables inside of the component leaving the href empty for the text on the display.
In cta.twig, change the prototype:link include from:
<?php
<code>{{ include('prototype:link', {
classes: ['c-cta__link'],
link_link: { url: link.url, title: link.title },
link_icon: icon,
attr: create_attribute(),
}, with_context = false) }}?>
{{ include('prototype:link', {
classes: ['c-cta__link'],
link: { url: link.url, title: link.title },
icon: icon,
attr: create_attribute(),
}, with_context = false) }}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
Comment #2
grgcrlsn321 commentedCorrected the prop names to work for CTA link. Needs review.
Comment #4
grgcrlsn321 commentedComment #6
jldust commentedThis has been merged in and will be included in the next tagged release.