When using the Hyperlink Manager to insert a link, the entered URL might be rendered incorrectly if the link contains a fragment identifier with parameters.
For example, inserting the following link to the URL field and saving changes:
https://example.com/page#value1=1&value2=2&value3=3
results in:
https://example.com/page&value2=2&value3=3#value1=1
To resolve the issue, consider the following options:
Alternatively, you can disable the processor below by creating a configuration patch file in the \App_Config\Include\zzz folder:
<processor type="Sitecore.Pipelines.RenderField.SetAnchorsPositionInLinks, Sitecore.Kernel" />