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

Comments

andresgmh created an issue. See original summary.

andresgmh’s picture

Status: Active » Needs review
StatusFileSize
new1.24 KB

Here is a patch.

amin.ankit’s picture

Assigned: Unassigned » amin.ankit

Hi, Thanks for the patch.

I'll review the patch.

amin.ankit’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new317.47 KB

Hi ,

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

amin.ankit’s picture

Assigned: amin.ankit » Unassigned

vladimiraus’s picture

Version: 8.x-1.16 » 8.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Thank you.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.