This question is about the CMS Composite C1 and the MvcPlayer functionality.
I am using a Razor page template for my pages and embed several MVC actions in the layout by using
@Function("Composite.AspNet.MvcPlayer", new { Path = "/Controller/Action" })
This works pretty well in general, but for some reason the MvcPlayer renders not only the View returned by the action itself, but encloses the View in
<html><head></head><body>[View content is here]</body></html>
This obviously screws up my markup, because I am nesting html-blocks in the site. Why is this happening and is there a way to stop the MvcPlayer from creating the additional markup?
As this appears to be solely a Composite C1 issue, I'm linking to the source code for Composite C1 in the hopes that someone will be able to tell me if it's a Composite C1 bug or if I just am using it incorrectly.