Card button URL isn't set correctly when "Make Card Link" is unchecked

Created on 30 January 2023, almost 2 years ago
Updated 4 February 2023, almost 2 years ago

Problem:

The Card button URL is not set correctly when the “Make Card Link” checkbox is left unchecked. Instead of setting the link as the value provided in the URL field, it points to the current page.

Steps to reproduce

  1. Edit a page and add a USWDS Card Group (Regular or Flag)
  2. In the card URL field, enter a URL or select a piece of content from the auto dropdown
  3. Leave “Make Card Link” unchecked and save the page
  4. Confirm the card button points to the current page URL instead of what was entered in the URL field.

Proposed resolution

Update the Card templates to set the button link to field_button.0.url.

🐛 Bug report
Status

Fixed

Version

2.4

Component

Code

Created by

🇺🇸United States louxaud

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

Comments & Activities

Production build 0.71.5 2024