Using docusign returnURL to close tab

I am working on a web app that uses DocuSigns embedded signing api. I have a form that opens in a new tab and then handles a returnURL once the user signs and submits the form. I wanted to know how I could get the form to close the tab completely once it is submitted rather than it going to a returnURL parameter.

I have tried setting the returnURL to null and looking through the embedded signing API to get any pointers on how I could not have a redirect, but this was to no avail.

Any help would be appreciated.

  • Why not just provide a returnURL parameter that resolves to a page with some JavaScript to close the tab?


  • The thread you linked doesn’t actually have a working modern solution. There are many hacky workaround attempts, but they don’t seem to be working anymore…


If yours returnUrl redirect to a backend resource – redirect from there back to your app with some query param that indicates the client app to use some JS functionality to close the current tab.

If yours returnUrl redirect to the client app, just insert the query param directly to it.

Yours redirect url back to the client app should look like this –

Leave a Comment