Attaching library in template does not work

Created on 17 October 2022, about 2 years ago
Updated 12 June 2024, 6 months ago

Problem/Motivation

Using {{ attach_library('some/library') }} in template overriding any of modules templates does not attach given library.

Steps to reproduce

Copy one of module templates and place a code to attach library to it. See that library is not attached despite copied template is used.

Proposed resolution

I am not proficient enough to propose anything but see #2974324: Render the templates of the module in a better way β†’ where this was already fixed and #3187414: Add support for Panels Everywhere β†’ where fix was reverted.

πŸ› Bug report
Status

Needs work

Version

1.24

Component

Code

Created by

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