- Issue created by @cdupree
- 🇺🇸United States cdupree
Is the ['#options'] array generated through core or is it generated through the modules that use it? Please advise if this bug is being reported in the wrong place, thanks.
- Status changed to Needs work
9 months ago 9:44pm 21 February 2024 - 🇺🇸United States cdupree
I'm not sure, I'm not a seasoned Drupal dev. How can I determine which formatter I'm using?
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
See related issue, might be a problem in your theme
What sort of content are you using the link field on- menu links? - Status changed to Needs review
9 months ago 10:06pm 22 February 2024 - 🇺🇸United States COBadger
It's not clear to me where this was addressed in 10.2.x, so I'm attaching a patch that I re-rolled from the 11.x patch for use against 10.2.3 in case it's useful to anyone.
Marking this as 'Needs review', though perhaps this issue could be closed if it's addressed in the linked issue.
- Status changed to Needs work
9 months ago 10:24pm 22 February 2024 The Needs Review Queue Bot → tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request → . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
- Status changed to Needs review
9 months ago 8:50pm 23 February 2024 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Link attributes module is still passing tests on 10.2.3
If you have this problem it is likely you have a theme preprocess hook or template that is accessing link['optiions'] the fix in core was to remove duplicates between link['optiions'] and link['url']->get options()
You should be using the options on the url object, not the render array
- 🇺🇸United States cdupree
Yes, the linked issue #3423171 was a duplicate of this problem.
We did a find and replace in our theme and replaced all instances of ['#options']['attributes'] with ['#url'].options['attributes'] which solved our issue.Thank you!
- Status changed to Closed: works as designed
9 months ago 9:41pm 23 February 2024