Merge tag with spaces gets URL-encoded as %20 in Insert/Edit Link
in progress
Danial Ahmed Khan Tareen
Description: When users insert a merge tag with spaces (e.g., {{ tag.link }}) into the Insert/Edit Link popup for text links, the editor automatically URL-encodes the spaces, resulting in %20 being added around the tag (e.g., {{%20tag.link%20}}). This breaks the merge tag rendering. The issue does not occur in the button link field, which handles the same input correctly.
Steps to Produce:
1- Open the Unlayer Embed editor
2- Add text and highlight a portion to insert a link
3- Click “Insert/Edit Link”
4- Enter a merge tag like {{ tag.link }}
5- Save and inspect the resulting HTML or reopen the link field
Expected: Merge tag should be inserted as {{tag.link}} without URL-encoding
Actual: Merge tag becomes {{%20tag.link%20}}, breaking functionality
This post was marked as
in progress
Danial Ahmed Khan Tareen
under review