- Issue created by @justin2pin
- @justin2pin opened merge request.
If the theme is switched dynamically / programmatically, the original theme is still used for attempting to find the correct component in ComponentNegotiator.
We ran into this while using cl_components with Mercury Editor. Mercury Editor switches to the front-end theme to build Ajax responses. ComponentNegotiator was unable to correctly negotiate the component twig template because its "activeTheme" property was set to the (now incorrect) theme used when the ComponentNegotiator service was first initialized.
Dynamically check for the current active theme, rather than using a static property (activeTheme) only set once on the service.
Submit a patch / merge request.
None.
None.
None.
Active
1.0
Code