Fixed invalid search query results. Now raises pageerror. Fixed redirects.