TLDR: Geolocation location happening on new page when it's not supposed to.
-----------------------------------------------------------------------------------------------
So I have the following template config
path = ui.apps/src/main/content/jcr_root/apps/paperland/components/template/new-template/.content.xml
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:description="Template with focus on content."
jcr:primaryType="cq:Template"
jcr:title="New Content Page"
allowedPaths="[/content/.+]"
ranking="{Long}100">
<jcr:content
jcr:primaryType="cq:PageContent"
sling:resourceType="paperland/components/page/new-page">
<cq:responsive jcr:primaryType="nt:unstructured">
<breakpoints jcr:primaryType="nt:unstructured">
<phone jcr:primaryType="nt:unstructured" title="{String}Phone" width="{Decimal}768"/>
<tablet jcr:primaryType="nt:unstructured" title="{String}Tablet" width="{Decimal}1200"/>
</breakpoints>
</cq:responsive>
</jcr:content>
</jcr:root>
I also have this page config
path = ui.apps/src/main/content/jcr_root/apps/paperland/components/page/new-page/.content.xml
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:Component"
jcr:title="new content page"
sling:resourceSuperType="paperland/components/page/base-page"
componentGroup=".hidden"/>
The new-page is an copy/paste version of ui.apps/src/main/content/jcr_root/apps/paperland/components/page/content-page. The only difference is that the jcr:title is different.
If I go into CRXDE and change the "sling:resourceType" to point to content-page, I DO NOT get any geolocation prompt. If I change it back to content-page1, geolocation is back.
I am using navigator functions in my custom JS file so as a test, I have removed all the contents of the several JS files we are using (located at /etc/designs/paperland/clientlin-site/js)
1. Can someone please assist in explaining what's happening?
2. Can someone please help in turning off geolocation?
Thanks!