src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function(sParameter, vValue) {
			// fetch current parameters from URL
			var sSearch = window.location.search,
				sURLParameter = sParameter + "=" + vValue;

			/// replace or append the new URL parameter
			if (sSearch && sSearch !== "?") {
				var oRegExp = new RegExp("(?:^|\\?|&)" + sParameter + "=[^&]+");
				if (sSearch.match(oRegExp)) {
					sSearch = sSearch.replace(oRegExp, sURLParameter);
				} else {
					sSearch += "&" + sURLParameter;
				}
			} else {
				sSearch = "?" + sURLParameter;
			}

			// reload the page by setting the new parameters
			window.location.search = sSearch;
		}
function(sParameter, vValue) {
			// fetch current parameters from URL
			var sSearch = window.location.search,
				sURLParameter = sParameter + "=" + vValue;

			/// replace or append the new URL parameter
			if (sSearch && sSearch !== "?") {
				var oRegExp = new RegExp("(?:^|\\?|&)" + sParameter + "=[^&]+");
				if (sSearch.match(oRegExp)) {
					sSearch = sSearch.replace(oRegExp, sURLParameter);
				} else {
					sSearch += "&" + sURLParameter;
				}
			} else {
				sSearch = "?" + sURLParameter;
			}

			// reload the page by setting the new parameters
			window.location.search = sSearch;
		}
function ( sParameter , vValue ) { // fetch current parameters from URL var sSearch = window . location . search , sURLParameter = sParameter + "=" + vValue ; /// replace or append the new URL parameter if ( sSearch && sSearch !== "?" ) { var oRegExp = new RegExp ( "(?:^|\\?|&)" + sParameter + "=[^&]+" ) ; if ( sSearch . match ( oRegExp ) ) { sSearch = sSearch . replace ( oRegExp , sURLParameter ) ; } else { sSearch += "&" + sURLParameter ; } } else { sSearch = "?" + sURLParameter ; } // reload the page by setting the new parameters window . location . search = sSearch ; }
Replaces the URL parameter and triggers a reload of the current page
@param {string} sParameter Parameter name
@param {any} vValue Parameter value
@private
Replaces the URL parameter and triggers a reload of the current page