account for slugs in url