Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges



Level 1
The problem is every request API POST or GET is being server with .html at the end but it's shouldn't be
5 Replies


Level 3

Hi @julianoalvess ,

By mistake I clicked on me too. Please ignore ;).

It would be better if you kindly elaborately say what exactly is your issue with an example, it will help to identify the problem. 

If you want your pages ( with requests from API) should't come with .html, how exactly the response bothering you in dispatcher.


Level 4

Hi @julianoalvess , Can you please check if the API request has sling.servlet.extensions="+ "html" in the code.


Community Advisor

How are you making the API call ? Can you share some sample code ?


Level 6

Are you using sling.servlet.extensions as html in your servlet?

                   Constants.SERVICE_DESCRIPTION + "=Simple Demo Servlet",
                   "sling.servlet.methods=" + HttpConstants.METHOD_GET,
                   "sling.servlet.resourceTypes="+ "demoproject/components/structure/page",
                   "sling.servlet.extensions=" + "html"


Level 1

No, It can be the dispatcher, with these rules: PS: Only call API 


RewriteCond %{REQUEST_URI} !^/content/dam/.*
RewriteCond %{REQUEST_URI} !.*\..*$
RewriteCond %{REQUEST_URI} !.*/$
RewriteCond %{REQUEST_URI} !^/saml_login
RewriteCond %{REQUEST_URI} !^/bin
RewriteRule ^/(.*)$ /content/prudential/home/$1.html [PT,L,QSA]