peer-pad icon indicating copy to clipboard operation
peer-pad copied to clipboard

Clicking on the back button after creating a new document will create another document

Open jimpick opened this issue 6 years ago • 2 comments

Because the new root url redirects to a new document, going back will create a new document.

We probably need to manage history better.

Perhaps we shouldn't create a new document without user interaction, as it is a bit surprising.

jimpick avatar Apr 25 '19 15:04 jimpick

the simplest solution here is to use history.replaceState so there's no "back" history entry to go back to

parkan avatar May 08 '19 19:05 parkan

reworking history handling will also affect https://github.com/ipfs-shipyard/peer-pad/issues/311

parkan avatar May 08 '19 20:05 parkan