Steps to reproduce
- Open https://www.wikidata.org/wiki/Q1030325#P10559
- Notice that it links to https://www.ksh.hu/apps/hntr.tortenet?p_lang=EN&p_id=52132
- Open the named statement for editing.
- Modify its value (e.g. insert a trailing space).
- Click Cancel.
Actual result
- The snak is no longer linked.
Expected result
- The snak continues to link to the same web page.
Additional information
P10559 has two formatter URLs, one of which is set to preferred. It looks like the PHP code correctly handles this situation, but the JS doesn’t. (I hope that setting preferred won’t be necessary after T259801, but it seemed that this makes the PHP fomatter happy.)