urlpages icon indicating copy to clipboard operation
urlpages copied to clipboard

History is wrecked

Open lol768 opened this issue 6 years ago • 2 comments

Can you use history.replaceState so the browser history doesn't get filled with spam after each keystroke in the editor? :)

lol768 avatar Jun 30 '19 14:06 lol768

https://github.com/jstrieb/urlpages/blob/562416439512a7f7b13812a37356ac3cbcd1ca3e/editor/editor.js#L118

history.replaceState({}, "", "/urlpages/editor/#" + window.btoa(JSON.stringify(data)));

lol768 avatar Jun 30 '19 14:06 lol768

Great idea. Can you make a PR with that change?

lodenrogue avatar Jun 30 '19 14:06 lodenrogue