HTML5 History API

#1

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.

#2

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

#3

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.

#4

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