[noticket] Fixes problem with preview, c.resource_json no longer available in core