fix bug in search when user not logged in
Merge branch 'chore-fix-search' into dev