Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Won't Fix
-
sitemap-1.04.01
-
None
Description
– Worked around on HIPPLUG-858, waiting for HSTTWO-3012 to fix this one –
– Original Issue –
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-858 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