The reason the link works on copy/paste but not on click is that the link's URL property was not changed to match the new text assigned to the link.
jank