Try making a formula rich text button with this code. It should work in either edit or add modes. The code below works to add a record and then land the user on the newly added record in edit mode.
var text RID = IF([Record ID#] >0, ToText([Record ID#]), "%%rid%%");
var text AddRecord = URLRoot() & "db/" & Dbid() & "?a=nwr";
var text EditRecord = URLRoot() & "db/" & Dbid() & "?a=er&rid=" ;
var text URL =
$AddRecord
& "&rdr=" & URLEncode($EditRecord) & $RID;
"<a class='SaveBeforeNavigating' data-replaceRid=true style=\"text-decoration:none; background: #1ba802; border-radius: 5px; color: #ffffff; display: inline-block; padding: 0px 0px 0px 0px; width:100px; text-align: center; text-shadow: none; border: 2px solid #1ba802; font-size: 12px \"href='"
& $URL
& "'>Save and Continue Editing</a>"
//NOTE: The %%RID%% does not seem to like being URLEncoded.