link() function obscures getOption() results

Created on 1 December 2015, about 9 years ago
Updated 4 April 2024, 9 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 about 3 hours 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.71.5 2024