Fix AttributeError mainmenu_selected in Licence history page

mainmenu was not selected, fix object url in template.