If we are not forced to introduce an additional attribute, I would prefer to "work" with the href attribute. Line 152 of this patch has to be adjusted I guess.

As of "data-uid", I am considering to remove it from the FE output as well (but not in the BE which can be useful information). IMO, it does not need to be exposed widely.

Please consider the remark left at the bottom of the Forge ticket (you certainly saw it already).