fixes #84: accept slug or id for pages/ resource