Fix share and copy links to use recordid instead of doc/owner

[#79483296]