| if (isAdminRoute()) { | if (isAdminRoute()) { | ||||
| search.setSearchStringManually(value); | search.setSearchStringManually(value); | ||||
| } else { | } else { | ||||
| if (!routeMatches(HOME_PAGE) && !routeMatches(BASE_PAGE)) { | |||||
| if ( | |||||
| !routeMatches(HOME_PAGE) && | |||||
| !routeMatches(BASE_PAGE) && | |||||
| !routeMatches(MARKETPLACE_PAGE) | |||||
| ) { | |||||
| const newQueryString = new URLSearchParams({ search: value }); | const newQueryString = new URLSearchParams({ search: value }); | ||||
| history.push({ | |||||
| pathname: HOME_PAGE, | |||||
| history.replace({ | |||||
| search: newQueryString.toString(), | search: newQueryString.toString(), | ||||
| }); | }); | ||||
| } else { | } else { |