AEM adding comment block elements in my generated HTML page source | Community
Skip to main content
blkhatpersian
Level 3
February 26, 2016
Solved

AEM adding comment block elements in my generated HTML page source

Hi guys,

It seems like I can't catch a break with AEM, small things keep creeping up. I am using Google Chrome and I opened the "Inspect Page" tool on a loaded HTML page on my author AEM instance. I found this comment block element inserted near the bottom of the page:(Screenshot attached)

"<!--cq{"decorated":false,"type":"dashboardangular/component/page/index/app/home","path":"/content/dashboardangular/index/app/home/home/jcr:content","selectors":null,"servlet":"Script /apps/dashboardangular/component/page/index/app/home/home.jsp","totalTime":1,"selfTime":1}-->"

I did access this page using a vanity/virtual url I configured within the Sling Resource Resolver Factory bundle if that helps. I don't want to have this block at any point of my code because it exposes my code structure and my source file. 


Thanks,
Ali

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
February 26, 2016

Are you seeing this with all AEM pages or only certain pages. 

3 replies

blkhatpersian
Level 3
February 26, 2016

smacdonald2008 wrote...

Are you seeing this with all AEM pages or only certain pages. 

 

It looks like it is only on the Author pages, thank you for pointing that out! It is something about WCM mode being enabled, and by default a publish instance will not have it enabled. That is reassuring :) http://stackoverflow.com/questions/29561075/aem-inserts-html-info-comment-into-json


Thanks again!

Translate
smacdonald2008
Level 10
February 26, 2016
smacdonald2008
smacdonald2008Accepted solution
Level 10
February 26, 2016

Are you seeing this with all AEM pages or only certain pages. 

Translate