loaded()) { throw new Kohana_404_Exception(); } // Redirect to the more specific resource type, since it will render // differently. We can't delegate here because we may have gotten to this // page via /items/ which means that we don't have a type-specific controller. Also, we // want to drive a single canonical resource mapping where possible. access::required("view", $item); url::redirect($item->abs_url()); } }