Dispatcher returns response as text/plain when using selectors and .html is stripped off | Community
Skip to main content
chaitanya_pai1
Level 2
October 16, 2015
Solved

Dispatcher returns response as text/plain when using selectors and .html is stripped off

  • October 16, 2015
  • 2 replies
  • 1163 views

Hi,

Using etc/map configuration, we are hiding the .html at the end of the page url and are using short urls by hiding the /content/project. This works as expected and the page loads fine in publish environment. The link generated looks llike

https://www.mytestsite.com/homepage/page1/page2/page3.selector

However, when seen through dispatcher, the html source of the page is displayed instead of web content on the page. The response type is text/plain and not text/html.  

My guess is that as the dispatcher does not see the .html  and hence thinks of .selector as extension and returns html as plain text. Is that right?

Also, is there a way to bypass this issue?

Thanks in advance.

Chaitanya Pai

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 Sham_HC

It is expected & not a AEM or dispatcher issue.  In your webserver configure  mime type for selector to text/html in the file  mime.types

2 replies

Level 6
October 16, 2015

Hi Chaitanya,

First of all please check by clearing the cache.

Steps:

1.Stop apache service.

2.Clear all folders in dispatcher and start the dispatcher.

If not resolved, please send your dispatcher.any file .

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

It is expected & not a AEM or dispatcher issue.  In your webserver configure  mime type for selector to text/html in the file  mime.types