diff --git a/src/components/Topbar/Topbar.js b/src/components/Topbar/Topbar.js index 6103aef5..c5da15bb 100644 --- a/src/components/Topbar/Topbar.js +++ b/src/components/Topbar/Topbar.js @@ -222,10 +222,12 @@ class TopbarComponent extends Component { } handleSubmit(values) { + const { currentPage, location } = this.props; const { search, selectedPlace } = values.location; const { history } = this.props; const { origin, bounds, country } = selectedPlace; - const searchParams = { address: search, origin, bounds, country }; + const restParams = currentPage === 'SearchPage' ? parse(location.search) : {}; + const searchParams = { ...restParams, address: search, origin, bounds, country }; history.push(createResourceLocatorString('SearchPage', routeConfiguration(), {}, searchParams)); } diff --git a/src/containers/SearchPage/SearchPage.js b/src/containers/SearchPage/SearchPage.js index 862d2cbe..018e3c78 100644 --- a/src/containers/SearchPage/SearchPage.js +++ b/src/containers/SearchPage/SearchPage.js @@ -394,7 +394,7 @@ export class SearchPageComponent extends Component { mainEntity: [schemaMainEntity], }} > - +
- +