fix broken links and remove $rooturl usage