The macros referring to pages should provide the page ID as data-projectdoc-id attribute. This includes the Document Property Ref Concat Macro