Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
Description
We recently added sitemap.xml v1.04.01 to a 7.8 project, and used the component org.onehippo.forge.sitemap.components.SitemapFeedBasedOnHstSitemap to create the XML feed. The response generated claims to be text/html, while it should be application/xml. We worked around it in the project by prefixing the FTL template with
<#ftl attributes=
{"content_type": "application/xml"}/>
but I guess this should really be addressed by the component, setting the response's content type:
response.setContentType("application/xml");
This probably applies to other components of that plugin as well.
Attachments
Issue Links
- relates to
-
HIPPLUG-887 SItemap plugin: proper fix for HIPPLUG-858: XML-feed created by sitemap.xml plugin isn't marked as XML
- Closed
-
HIPPLUG-989 Forward port to trunk: XML-feed created by sitemap.xml plugin isn't marked as XML
- Closed
-
HSTTWO-3012 Setting the content type when using a freemarker template has no effect.
- Closed