Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Partial page content when ajax #7953
When request a page (home, for example) with ajax (with http header X-Requested-With: XMLHttpRequest) then I get only partial content of zone "Content". Without wrapped content of Document.cshml and Layout.cshtml
Why? How can I disable such behaviour?
It is reproduced on new clear site (v1.10.1, v1.10.2). "Core" recipe. Disable all modules except "Alias", "Feed", "Containers".
By the way: Feeds and Containers modules for some reason cannot be disabled. When I click "disable" I get nothing.
this is by design (mostly because its unusual to not want just the content via ajax)
Look at Orchard.Core.Contents.Controllers.ItemController int he display method
You could probably replicate this controller action in your own module and not put that part in ;) or similar