diff --git a/themes/next/components/SearchInput.js b/themes/next/components/SearchInput.js index c3565c43..09fde988 100644 --- a/themes/next/components/SearchInput.js +++ b/themes/next/components/SearchInput.js @@ -21,10 +21,10 @@ const SearchInput = ({ currentTag, currentSearch, cRef }) => { const key = searchInputRef.current.value if (key && key !== '') { setLoadingState(true) - // router.push({ pathname: '/search/' + key }).then(r => { - // setLoadingState(false) - // }) - location.href = '/search/' + key + router.push({ pathname: '/search/' + key }).then(r => { + setLoadingState(false) + }) + // location.href = '/search/' + key } else { router.push({ pathname: '/' }).then(r => { }) @@ -61,26 +61,31 @@ const SearchInput = ({ currentTag, currentSearch, cRef }) => { } } - return