Fix switching view mode regression on the search page
Merge pull request #3261 from bp323/viewMode

Search view mode cannot be switched