Fix bug causing nested resources to render origin or links incorrectly (missing prefix, missing parent url) when rendered outside of the parent resource