Closed
Platform / Lightning Flow
Work A 'retURL' parameter of a screen flow (Lightning Runtime) doesn't work on classic UI due to an CORS error if the org has a namespace
Summary
A CORS error occurs and the page doesn't redirect to 'retURL' after the finishing the screen flow when all of the following conditions are met.
* 'retURL' parameter is used like a '?retURL=home/home.jsp'.
- Customize a Flow URL to Control Finish Behavior
https://help.salesforce.com/s/articleView?id=sf.flow_distribute_internal_url_retURL.htm&type=5
* Lightning Runtime is Enabled.
- Set the Runtime Experience for URL-Based Flows
https://help.salesforce.com/s/articleView?id=sf.flow_distribute_internal_lexruntime.htm&type=5
* Orgnization has a Namespace.
- Register a Namespace
https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/register_namespace_prefix.htm
There is a simple screen flow that have only one screen.
* 'retURL' parameter is used like a '?retURL=home/home.jsp'.
- Customize a Flow URL to Control Finish Behavior
https://help.salesforce.com/s/articleView?id=sf.flow_distribute_internal_url_retURL.htm&type=5
* Lightning Runtime is Enabled.
- Set the Runtime Experience for URL-Based Flows
https://help.salesforce.com/s/articleView?id=sf.flow_distribute_internal_lexruntime.htm&type=5
* Orgnization has a Namespace.
- Register a Namespace
https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/register_namespace_prefix.htm
There is a simple screen flow that have only one screen.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Closed with 16 reports
Nov 30, 2026