Problem/Motivation
There is an issue when attaching the frontend library 'addtoany/addtoany' using $page['#attached']['library'][] or {{ attach_library('addtoany/addtoany') }}. It seems it is due to the naming convention used: addtoany/addtoany.
Proposed resolution
Rename the frontend library addtoany/addtoany to addtoany/addtoany.front
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | add-to-any-front-library-attached.png | 317.47 KB | amin.ankit |
| #2 | rename-frontend-library_3266598_1.patch | 1.24 KB | andresgmh |
Comments
Comment #2
andresgmh commentedHere is a patch.
Comment #3
amin.ankitHi, Thanks for the patch.
I'll review the patch.
Comment #4
amin.ankitHi ,
I have reviewed and applied patch #2. it's working fine.
Testing Steps:
1. Added module AddToAny in local.
2. Enabled module and created page and add a block AddtoAny.
3. Applied patch #2.
3. Front-end libraries are applied and working fine. (see attached screenshot)
Moving to RTBC.
Thanks,
Ankit Amin
moving to RTBC
Comment #5
amin.ankitComment #7
vladimirausThank you.