Hello,
I believed I've figured out the behaviour for the new editor for Google App Script IDE, as I was running into the same issues (new URL for new deployments) and started experimenting to figure things out. So, in the new editor (as of March 2021) :
- Deploy -> New deployment will create a new URL every single time. I believe the purpose is to have multiple versions of the program that can be tested without disrupting the main version.
You want this instead :
- Deploy -> Manage deployments : under "Active" at top left, make sure you have the right deployment selected (hover over URL to see it all)
- Then click on the pencil icon at the top right to edit this deployment. Click on the "Version" dropbox and "New version". Then "Deploy". This will update THIS version with your newest code and keep the same URL as you are not making a new deployment (just updating) ! Unfortunately, this wasn't made very clear anywhere that I could find.
If you have a dozen other actives that you don't want, you can archive them (icon is right next to the pencil).
If you archived the URL you were actually using in the past, you can bring it back by clicking on it under "Archived", then pencil icon, then Deploy.
- Under Deploy -> Test deployment, you have your /dev version which is your latest code live (like the old editor)
Cheers !