#651712 by carlos8f: Fixed bug where rendered menu tree links do not include proper attributes (with tests).