how to get the state from pushState code example
Example: javascript window.history.pushState
window.history.pushState("http://example.ca", "Sample Title", "/example/path.html");
window.history.pushState("http://example.ca", "Sample Title", "/example/path.html");