updated urls to handle slugs