Use the SharePoint Document ID redirect page

If this setting is ON, hyperlinks created by using Insert As, Link and Insert Attachment as Link will be a link to the DocId Redirection Page (DocIdRedir.aspx) with the unique Document ID as a parameter. These links will still work even after the document has been moved from where it was ooriginally saved.

Supported on: MacroView DMF and MacroView Message v8.8

Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\MacroView\DMF\UserOptions
Value NameUseDocIdRedir
Value TypeREG_DWORD
Enabled Value1
Disabled Value0

macroviewdmf.admx

Administrative Templates (Users)