Closed klor closed 1 year ago
Ryan, it looks like if($error) $value = $this->val();
is missing at the and of setAttributeValue() in InputfieldURL.php ?
Klor, just for info, URL field allows IDN characters.
Thanks @klor and @matjazpotocnik I've added matjazpotocnik suggested fix for this.
@klor closing this, let me know if the fix isn't working for you.
Short description of the issue
When using a url field on a page in the ProcessWire editing interface: When modifying a valid url, entering a url with invalid characters will delete both the invalid and the original / valid url
Expected behavior
Actual behavior
This url is saved in my page:
As an editor, I modify the url (note the invalid Danish ø-character -> https://prøcesswire.com/)
Error message is shown - url is gone
On page refresh, the url is still gone
Optional: Suggestion for a possible fix
Steps to reproduce the issue
Setup/Environment