Hi.
this goes for Mautic 5, in Mautic 4 we did not have that problem.
I am building a plugin and I noticed when page content is loaded via ajax CoreBundle/CommonController->ajaxAction is not dispatching
CoreEvents::VIEW_INJECT_CUSTOM_CONTENT
CoreEvents::VIEW_INJECT_CUSTOM_TEMPLATE
and as a result if you override core templates and then go and load page by going directly to url of the page modifications are visible, but if you visit page via menu on the left, modifications disappear, because default template is loading.
I can fix that, but before I do, I would just like to know if there is a specific reason why ajaxAction is not dispatching events.
Thank you.
Best, M.