improved postsUrl method