I think it is by design. If you look at Orchard.UI.Resources.ResourceFilter (this is a filter that adds these shapes to a layout that displays static resources), it contains the following check:
// should only run on a full view rendering result if (!(filterContext.Result is ViewResult)) return;
This prevents him from entering shapes into the layout if the result of the action is, for example, PartialViewResult.
You can do the following:
source share