HTML5 History API

Does Xd support html5 history api? It seems that any operations with window location don’t change anything and windows.history is undefined. It prevents from using routing in complex plugins.

does routing require window.history? Since XD is not a browser instance, window is undefined

In most cases routing relies on onpopstate event with push and replace state and forward/back navigation provided by history api. Also it seems that I can’t use any polyfill as window is not defined.

There’s no suoport for the HTML5 history APIs at the moment.

You can alias global to window, which might be sufficient to work with polyfills.

1 Like