Closed (fixed)
Project:
U.S. Web Design System (USWDS)
Version:
3.1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2024 at 23:33 UTC
Updated:
12 May 2025 at 16:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
debrup commentedWorking on it.
Comment #4
debrup commentedFixed the issue by modifying the twig files.
- Added checks to see if the url has a link or no link at all.
- Modified few manual 'a' tags to the drupal twig link() filter for better code optimization and automatic handling of the given issue :)
Please review the changes and check if the issue has been fixed or not.
Note: Since drupal twigs link() filter does not allow extra html tags in its text, so I have not changed those links which have other html tags inside the 'span' tags.
Comment #5
debrup commentedComment #6
stevenovy commentedInstalled and reviewed the changes, looks good, works well.
Comment #7
sayan_k_dutta commentedReviewed the changes. Looks Good. Attaching screenshot of the same and moving to RTBC.
Comment #10
jrglasgow commentedComment #11
simplyshipley commentedIt appears that this MR introduced a bug when creating the links in the menu--sidebar_first.html.yml and menu--sidebar_second.html.yml files. The new code creates a link, but uses item.text instead of item.title which was previously used. This causes the links to be created without a label.
Updated code:
Previous code: