follow-up for #935 add support for id attribute on links to compat file