w/skins/MinervaNeue/resources/skins.minerva.scripts/search.js
/**
	 * Hide the search overlay on pageload before the search route
	 * is registered with the overlayManager.
	 * Allows the usage of history.back() to close searchOverlay by
	 * preventing the situation described in https://phabricator.wikimedia.org/T102946
	 */
Hide the search overlay on pageload before the search route
is registered with the overlayManager.
Hide the search overlay on pageload before the search route is registered with the overlayManager .
function removeSearchOnPageLoad() {
		if ( searchRoute.test( overlayManager.router.getPath() ) ) {
			history.replaceState( '', document.title, window.location.pathname );
		}
	}
function removeSearchOnPageLoad ( ) { if ( searchRoute . test ( overlayManager . router . getPath ( ) ) ) { history . replaceState ( '' , document . title , window . location . pathname ) ; } }
Hide the search overlay on pageload before the search route
 is registered with the overlayManager.
Hide the search overlay on pageload before the search route is registered with the overlayManager .
// TODO: replace when router supports replaceState https://phabricator.wikimedia.org/T189173