Pressing browser back button from new project creates another project #511
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to Reproduce
You'll be taken to a new randomly-generate URL and both starter projects will be in your project library.
Expected behavior
Returning to the home page (or other previous page before creation)
Suggested reasons
The
/draft/{cadPackage}endpoint is redirecting all traffic to the IDE after creating a new project. It might be worth adding logic within the endpoint to detect whether a back navigation is occurring through it. Redwood's router might have a pre-made solution for this case.Oh right, good observation. Don't have much experience detecting back clicks or any advanced stuff with the redwood router. The problem might also be the javascript redirect you mentioned I'm doing from
/draft/{cadPackage}for logged in users. Maybe the buttons in the plus button dropdown should route differently depending on if the user is logged in or not.