In apex I have added a code to add aria-current=\"page\" to the current page but it never add it to the dom.
aria-current=\"page\"