make urls for nested resources