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

Created on 30 January 2023, over 1 year ago
Updated 4 February 2023, over 1 year 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.69.0 2024