   (let [open-group-id (subscribe [:open-group-id])
         search-query (subscribe [:search-query])
         kill-chan (chan)
-        search-chan (chan)]
+        search-chan (chan)
+        exit-search! (fn []
+                       (routes/go-to! (routes/inbox-page-path {:group-id @open-group-id})))]
     (r/create-class
       {:component-will-mount
        (fn []

                   (let [{:keys [query]} v]
                     (store/set-search-results! query {})
                     (if (string/blank? query)
                       (routes/go-to! (routes/inbox-page-path {:group-id @open-group-id}))
                       (do (dispatch! :search-history [query @open-group-id])
                           (routes/go-to! (routes/search-page-path {:group-id @open-group-id
                                                                    :query query})))))

                       (put! search-chan {:query query})))}]
          (if (seq @search-query)
            [:div.action.clear {:on-click (fn []
                                            (exit-search!))}]
            [:div.action.search])])})))
