Fix broken search on front page.

Search on the front page doesn't currently work, but this fixes it.

CC: @mex