If I add an internal link in the rich text editor then URL is being created as
<a href="~/link.aspx?_id=326F731D96DA4CAEA1127E0FA48BB9B3&_z=z">
It should be resolved in the correct format with path instead of ID after publishing the page, but it's not happening. I am using a custom link provider, is there any particular method I can check to see why it is happening? I am not able to find it anywhere.