Redirect Flows That Render in Lightning Runtime

The URL parameter retURL lets you control what happens when a flow interview finishes. Lightning runtime now respects the URL parameter retURL. Previously, only the Classic runtime respected the parameter. This change applies to both Lightning Experience and Salesforce Classic.


In Lightning Experience, you can redirect a flow in a web tab only to a Visualforce page.


You create a custom button called “Survey Customers” with this URL.

When a user clicks Survey Customers, the flow runs. When the user clicks Finish, Salesforce redirects the user to the home page.

When a user clicks Finish, the retURL parameter redirects the user to their home page