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.
| Comment | File | Size | Author |
|---|---|---|---|
| International Phone field error 2023-07-26 134017.jpg | 118.67 KB | kanchamk |
Comments
Comment #2
kanchamk commentedComment #3
kanchamk commentedComment #4
saidatomComment #5
saidatom