Bypassing Apache Sling GET Servlet | Community
Skip to main content
mskfox
June 15, 2020
Solved

Bypassing Apache Sling GET Servlet

  • June 15, 2020
  • 2 replies
  • 1552 views

We have a product called "Dialog" that we would like to render a PDP at {site-root}/products/product/dialog.html but ‘dialog.html’ is triggering the Apache Sling GET Servlet's json renderer. Is there a way to bypass this? 

  • I’ve tried disabling the JSON renderer on the Apache Sling GET Servlet, but all this does is prevent the dialog page from rendering and throws a 404 instead.
  • Since our PDP leverages sling mapping, I've tried creating a page at that specific location and it’s still rendering JSON or throwing a 404.
  • And I also tried creating a specific mapping for the dialog product, but the GET Servlet seems to be taking precedent.

Any other ideas?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by akhoury

I'm not sure, but it sounds like based on your description you are trying to serve a static HTML file via AEM?  Here is another forum post on the same thing:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/hosting-static-html-in-the-jcr/qaq-p/223359

2 replies

Shashi_Mulugu
Community Advisor
Community Advisor
June 16, 2020

@mskfox what is the resource type for dialog.html? If it is a page, do you have template defined with a age component resource type.

akhoury
Adobe Employee
akhouryAdobe EmployeeAccepted solution
Adobe Employee
June 16, 2020

I'm not sure, but it sounds like based on your description you are trying to serve a static HTML file via AEM?  Here is another forum post on the same thing:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/hosting-static-html-in-the-jcr/qaq-p/223359