Modified url_for method to check if a locale is already set