link() function obscures getOption() results

Created on 1 December 2015, over 8 years ago
Updated 4 April 2024, about 2 months ago

Using the getOption() function in a twig template fails to get the attribute if placed after the link() function in the template.

works
{{ item.url.getOption('attributes').title }}
{{ link(item.title, item.url) }}

does not work
{{ link(item.title, item.url) }}
{{ item.url.getOption('attributes').title }}

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Theme 

Last updated 1 day ago

Created by

🇺🇸United States Lowell

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024