Fix warning when passing locale to url