Selector based request is not working for the XF included in template structure
I've a base page from where header/footer sections are created as experience fragments and embedded in the structure of the template.
Working on a new requirement where I need to render the page content based on selectors in the page url.
Eg: If the url is http://localhost:4502/content/lnccab/us/en/home.html, it loads entire content.
If url is http://localhost:4502/content/lnccab/us/en/home.headless --> then it should not load header/footer components.
I have tried create selector based scripts for header/footer components (Part of Experience fragments) with empty content to deliver this requirement, However these scripts are not being picked up while requesting the page with selector and page is rendering with the default content.
Also noticed that selector is being considered while rendering the XF from the experience fragment console. Fragment is rendering with no content when calling the URL with headless selector.