Use history API to store page state

Store the current data (+ schemas and URI) in the HTML history state.

Hopefully, this should make forms work better.