Split ensure_url_has_locale in two more appropriated methods