Issue with IRI and pasted URLs

Problem

When a topic is created using a pasted URL pointing to an IRI (i.e., with accented characters or foreign scripts), the resulting link anchor shows URL-encoded characters as shown in the screenshot below, where the hostname is dérivation.fr and should read like this instead of d%c3%a9rication.fr.

image

Solution

Unescape the hostname when displaying the link.