   $(window).on "load", (e) ->
     search = window.location.search
 
-    unless search
+    if search
+      saveTextSearchCondition()
+    else
       cond = JSON.parse(localStorage.getItem('textSearch'))
 
       if cond

$ ->
  saveTextSearchCondition = (selectTag) ->
    cond =
      selectedValue: selectTag.find(':selected').val()
      query: $('input#q').val()

    localStorage.setItem('textSearch', JSON.stringify(cond))

    selectTag    = $('select#category')
    searchTarget = selectTag.find(':selected').data('searchTarget')

    saveTextSearchCondition()

    switch searchTarget
      when 'category'
