3 ms·
FYI, https://rustpad.io https://rustpad.io breaks the back button by updating the URL hash to a new document every time I try to go back. Use location.replace()
by re 5y ago
FYI, https://rustpad.io https://rustpad.io breaks the back button by updating the URL hash to a new document every time I try to go back. Use location.replace() https://developer.mozilla.org/en-US/docs/Web/API/Location/replace https://developer.mozilla.org/en-US/docs/Web/API/Location/re... or history.replaceState() https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState https://developer.mozilla.org/en-US/docs/Web/API/History/rep... to avoid that, instead of assigning to window.location.hash.