Trying to fix locale settings
Found bug blocking locale setting from prefix
Split ensure_url_has_locale in two more appropriated methods