Redirect to Parent After Saving Child Records

I have three DocTypes: Account, Location, and Contact. In my workflow, the Account DocType has a child table for Location, and the Location DocType has a child table for Contact. When adding a new Location from the Account form, it redirects to the Location DocType, and after saving, the newly created Location value is correctly added to the Account form. Similarly, when I create a new Contact in the Location form, it returns to the Location form with the new Contact, which is expected.

If I try to create a new Account with a new Location and a new Contact, after saving the Location with the newly created Contact, it stays on the Location single view instead of returning to the Account form with the saved Location and Contact details. I want it to automatically return to the Account form once the Location (with its Contact) is saved. How can I achieve this redirection back to the Account form?