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

SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Level 6

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 .

Avatar

Correct answer by
Level 10

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