Move the urlToSlug call down till we know there is one.