Asset_Injector multi-langual multisite not working

Created on 27 January 2022, almost 3 years ago
Updated 3 June 2024, 7 months ago

Problem/Motivation

Having a multisite D8.9 or D9.x one site A with a theme A and the other site B with a theme B (extended from theme A), each have it's own configuration folder.
modules asset_injector is enabled on both,site A is working fine with default langauge set
but site B have multi-language and translation enabled and asset_injector isn't working somehow even though it is set correctly using theme B, and placed in footer aswell.
I check the rights and permission is sites/default/files/asset_injector even putting them to 777 just in case.

Am i missing something or is multilanguage or using theme B as subtheme of theme A the culprit ?

Steps to reproduce

Drupal 8.9.20.
On a multi-website, one of the site (A) without multilingual modules (Content Translation) and another site (B) with multilingual support (English/French).
Site A has a main theme, and Site B is using a subtheme based on site A.
Installing Asset Injector on both site A and B.
On site A the asset_injector and configuring JS injector and based on main theme (siteA) in the footer region. It works, by creating folder in drupal/sites/siteA/files/, I can see the script inserted in DOM of footer region and the JS is injected and visible in sources.
Whereas site B with same asset_injector settings almost except using subtheme (siteB), does seems to have asset_injector folder in drupal/sites/siteB/files/ but no JS is injected anywhere, neither in DOM or Source.
I have no specific errors in logs.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: cannot reproduce

Version

2.8

Component

Code

Created by

🇫🇷France karimbou

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