Details
-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
1.1.1
-
None
Description
When defining a fragmentDefinition for a component, and accessing that component with direct component access, unwanted code is rendered into the source code.
F.e. adding a fragmentDefinition to jumbotron.yaml
fragmentDefinition:
class: info.magnolia.module.advancedcache.rendering.DynamicFragmentDefinition
ttl: 0
mechanism: sitemesh
dynamic: true
When accessing that component directly (can't be tested on magnolia demo, because sitemesh module is not installed):
https://demo.magnolia-cms.com/sportstation/about/main/0
There is unwanted code in the beginning of the source code
<mgnl:injecturi target="/sportstation/about/main/0" X-Magnolia-Cache="ttlValue=0,CacheKeyGenerator=,">
This can cause serious problems, f.e. when rendering XML or JSON files via component variation, which are then invalid.