Closed TomBinford closed 1 year ago
Visit the deploys page to approve it
Name | Link |
---|---|
Latest commit | 1a013b1df96ba2a7451f81ea5c017d6efb201ed7 |
Follow-up: if a user shares a link like /editor/someprogramid
, we should redirect other users (anyone but the owner) who use that link to /p/someprogramid
. I haven't tested what would happen currently but I know it doesn't redirect.
Closes #746 This makes the URL reflect the current program, which used to live only in
mostRecentProgram
in the Redux state. On page load, the URL acts as a source of truth to setmostRecentProgram
. After that point, we want Redux to be the source of truth so the URL will change whenevermostRecentProgram
is set. This conveniently leaves the existing calls tosetMostRecentProgram
untouched.This is also integrated with browser history so switching between files will let the forward/back buttons work as you expect.