Issue #2650246 by swentel, Wim Leers: Only emit Contextual Links data- attributes when actually necessary