Problem/Motivation

Special characters in international phone field like slash (other than hyphen and plus) throwing an InvalidArgumentException: The URI 'tel:0176/20785529' is invalid. You must use a valid URI scheme. in Drupal\Core\Url::fromUri() (line 282 of D:\xampp\htdocs\***\web\core\lib\Drupal\Core\Url.php).

Steps to reproduce

Create the International Phone field in user account settings(/admin/config/people/accounts/fields), Import the users with international phone value from csv file, here International phone data will be imported from csv with slashes added in csv as there is no validation for International Phone field during import via custom code. Now create the view as page using user fields and attach the data export(csv) to that view. Access the view page url and try to click on csv download that is attached to it, it throws a website encountered error.

Comments

kanchamk created an issue. See original summary.

kanchamk’s picture

Title: Special characters in international phone field like slashs (other than hyphen and plus) throwing an InvalidArgumentException: The URI 'tel:0176/207987' is invalid » Special characters in international phone field like slashes throwing an InvalidArgumentException: The URI 'tel:0176/207987' is invalid
kanchamk’s picture

Issue summary: View changes
saidatom’s picture

Version: 8.x-1.7 » 3.x-dev
Status: Active » Needs work
saidatom’s picture

Version: 3.x-dev » 4.0.x-dev
Status: Needs work » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.