Entire html is wrapped by div tag on "viewsourcepage" | Community
Skip to main content
Level 2
Dec 12, 2018 3:29 PM UTC
Solved

Entire html is wrapped by div tag on "viewsourcepage"

Hi,

I have 404 page in AEM 6.2 and if I change 404 to some random errors.html it is redirecting to 404 page. I have observed that the html is wrapped by <div> tag on viewsourcepage. Any solution to get rid off div tag ?? I have tried with cq:noDecoration: {boolean} true also unfortunately have noticed side effects on component level. So looking for any other solution.

Below is the sample viewsourcepage code:

--Santhosh

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Ravi_Pampana
Ravi_PampanaAccepted solution
New Participant
Dec 12, 2018 4:47 PM UTC

The div tag is above doctype, so seems it is not related to aem components. You need to check the template/jsp files which are rendering for 404 page and there might be empty div added which needs to be removed to get rid of that.

3 replies

Ravi_Pampana
New Participant
Dec 13, 2018 5:05 PM UTC

Hi Santhosh,

404 page mostly do not use any template. You may need to check whether the redirect is happening from apache or there will be 404 file under /apps/sling/servlet/errorhandler/404.jsp (in my case). You can check the 404 jsp files.

Translate
Level 2
Dec 13, 2018 4:23 PM UTC

Hi Ravi,

I have verified @ template/jsp level also, no root cause have been identified. template is looks good.

any other potential area would you recommend ??

--santhosh

Translate
Ravi_Pampana
Ravi_PampanaAccepted solution
New Participant
Dec 12, 2018 4:47 PM UTC

The div tag is above doctype, so seems it is not related to aem components. You need to check the template/jsp files which are rendering for 404 page and there might be empty div added which needs to be removed to get rid of that.

Translate