Hi,
I am trying to implement the experience fragment for AMP page. I have converted all core components to be AMP compatible by creating amp.html which is overriding the core components html. This amp.html is invoked with the amp selector in page URL. When an Experience fragment load on an amp page its not loading the amp.html rather loading the core components html which makes that amp page invalid. The body.js invoked in core xfpage component invoke core component html rather than amp.html.
Experience fragment is loading from OOTB /libs/cq/experience-fragments/components/xfpage which invokes the body.js (/libs/cq/experience-fragments/components/xfpage/body.js) and Amp does not allow JS.
I need my experience fragment to load amp.html on amp pages. So I need help to load xfpage and core component as Amp valid.
@smacdonald2008
@kautuk_sahni
@Arun_Patidar
@Veena_Vikram