I think that this is low tech.
Go to the settings for the Parent table, Advanced Settings and check the box for
"Save Parent record automatically when a child record is added."
Then the default behaviour will be to return to the Parent record after saving the Child.
If you want to stick on view mode on the child after saving, then edit the Add Child code to comment out or remove that last part which says
& "&z=" & Rurl()