In Sitecore XP, a server error can occur when editing an existing link from the Experience Editor using the custom Experience Editor button.
This issue occurs if the URL configured for the link contains an ampersand character (&) and the editor attempts to reopen the link dialog from the Experience Editor after the item has been saved.
When the issue occurs, the Experience Editor displays a server error similar to the following:
The behavior is limited to the Experience Editor Field Editor dialog opened via the custom Experience Editor button. The issue does not occur in either of the following scenarios:
There is currently no product fix or configuration based workaround available for this issue.
As a mitigation, Sitecore recommends avoiding editing links that contain ampersands via the custom Experience Editor button. Instead, use one of the following options:
Note: This behavior has been registered as a bug. To track the future status of this bug report, please use reference number PDXP-8193.
More information about public reference numbers can be found here: How to use public reference numbers