Expand my Community achievements bar.

SOLVED

AEM adding comment block elements in my generated HTML page source

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 3

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!