Fix generation of admin page links.