Fix some warnings and the breadcrumb functionality for search and library pages