JSON requests currently return the local context of only the last controller in the chain. If the layout is enabled, it ends up being the layout context, which is likely not the desired result. Relying on /direct/true isn't entirely intuitive, plus it only returns the requested controller's local context.
Since the local context is stored within each chain controller object, it should be easy enough to loop over it after the last controller and return something like the following:
JSON requests currently return the local context of only the last controller in the chain. If the layout is enabled, it ends up being the layout context, which is likely not the desired result. Relying on
/direct/true
isn't entirely intuitive, plus it only returns the requested controller's local context.Since the local context is stored within each chain controller object, it should be easy enough to loop over it after the last controller and return something like the following: