modified the posts url to have a slug parameter instead of an id