peer-base / peer-pad

📝 Online editor providing collaborative editing in really real-time using CRDTs and IPFS.
https://peerpad.net
MIT License
678 stars 58 forks source link

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

Open jimpick opened 5 years ago

jimpick commented 5 years ago

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.

parkan commented 5 years ago

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

parkan commented 5 years ago

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