Top "Html5-history" questions

The HTML5 History API allows programmatic manipulation of the browser's history through JavaScript, providing a method of managing the user's history stack when creating web applications.

historyApiFallback doesn't work in Webpack dev server

I use Webpack dev server and browserHistory in React Router to manipulate with urls by HTML5 History API. historyapifallback-option does …

javascript webpack react-router webpack-dev-server html5-history
How to unit test a react event handler that contains history.push using Jest and Enzyme?

Given a simple component: export default class SearchForm extends Component { constructor(props) { super(props) this.state = { query: '' } } onSubmit = (event) =&…

reactjs unit-testing jestjs enzyme html5-history
History API: Javascript Pushstate, get previous URL

$(window).bind('statechange',function(){ var State = History.getState(), url = State.url; }); In the following function, url returns the current URL. …

url history.js html5-history
replaceState(): a history state with url ... cannot be created in a document with origin

I have window.history.replaceState(null, null, 'about'); in main.js which are located in required/javascripts on my server. …

html html5-history
BrowserRouter vs Router with history.push()

I am trying to understand the difference between BrowserRouter and Router of the react-router-dom (v5) package and what difference it …

reactjs react-router react-router-dom html5-history react-thunk
How do I use window.history in JavaScript?

I found a lot of questions about this on Stack Overflow, but they were all very specific about certain parts. …

javascript html browser-history html5-history
How to configure Nginx with React Router HistoryLocation?

I'm currently using Nginx as a reverse proxy and to serve my static assets. I was using React Router's HashLocation …

post nginx reactjs react-router html5-history
Run dynamically injected javascript in DOM loaded via AJAX (attempting to ajaxify website with history.js)

I have a web application that essentially has header, footer and body views. I'm working on ajaxifying the website, using …

javascript dom pushstate history.js html5-history
Is there a callback for History.pushstate?

My Google-fu pulls up nothing. When you do this: var stateObj = { state: "some state" }; history.pushState(stateObj, "page 2", "other.htm"); …

javascript html html5-history
Detect whether HTML5 History supported or not

How can I check if the browser you are using supports the HTML5 history api? As you can see here …

html pushstate html5-history