diff --git a/modules/search/class.jetpack-search.php b/modules/search/class.jetpack-search.php index 0e937e862026a..5b72ae3e8d7a9 100644 --- a/modules/search/class.jetpack-search.php +++ b/modules/search/class.jetpack-search.php @@ -251,7 +251,6 @@ public function load_assets() { 'postTypeFilters' => $widget_options['post_types'], 'postTypes' => $post_type_labels, 'siteId' => Jetpack::get_option( 'id' ), - 'siteUrl' => site_url(), 'sort' => $widget_options['sort'], 'widgets' => array_values( $widgets ), ); diff --git a/modules/search/instant-search/components/search-app.jsx b/modules/search/instant-search/components/search-app.jsx index 3f14c537dce0a..3310773c87dd8 100644 --- a/modules/search/instant-search/components/search-app.jsx +++ b/modules/search/instant-search/components/search-app.jsx @@ -25,7 +25,7 @@ import { setSortQuery, getSortQuery, hasFilter, - restorePreviousPath, + restorePreviousHref, getSearchQuery, } from '../lib/query-string'; import { removeChildren, hideElements, hideChildren, showChildren } from '../lib/dom'; @@ -97,7 +97,7 @@ class SearchApp extends Component { this.setState( { showResults: false }, () => { showChildren( this.props.themeOptions.resultsSelector ); - restorePreviousPath( this.props.initialPath ); + restorePreviousHref( this.props.initialHref ); } ); } diff --git a/modules/search/instant-search/index.jsx b/modules/search/instant-search/index.jsx index 5005d25fb5192..f475bde8ca638 100644 --- a/modules/search/instant-search/index.jsx +++ b/modules/search/instant-search/index.jsx @@ -18,7 +18,7 @@ const injectSearchApp = grabFocus => { render(