Persist search params when navigating between views

Fixes #346.