fix resource rendering for local resources with id/doc: use the special views if defined