#292565 second follow up by John Morahan: fix login destination again on 403/404 pages and make the search form work there if displayed