history push method code example
Example 1: react router history push parameter
this.props.history.push({
pathname: '/template',
search: '?query=abc',
state: { detail: response.data }
})
Example 2: javascript window.history.pushState
window.history.pushState("http://example.ca", "Sample Title", "/example/path.html");