I'm don't know how to directly contribute to this project, but I made the below change to the URLFlowLauncherController.js file to allow the flow to specify the returnURL. My use case was to send the user to the contact my flow just created.
handleStatusChange: function (cmp, event, helper) { if (event.getParam('status') === "FINISHED") { var outputVariables = event.getParam("outputVariables"); var outputVar; for (var i = 0; i < outputVariables.length; i++) { outputVar = outputVariables[i]; if (outputVar.name === "returnURL" && outputVar.value != "" && outputVar.value != null) { cmp.set("v.returnURL", outputVar.value); } } helper.navigateToReturnUrl(cmp); } }
I'm don't know how to directly contribute to this project, but I made the below change to the URLFlowLauncherController.js file to allow the flow to specify the returnURL. My use case was to send the user to the contact my flow just created.
handleStatusChange: function (cmp, event, helper) { if (event.getParam('status') === "FINISHED") { var outputVariables = event.getParam("outputVariables"); var outputVar; for (var i = 0; i < outputVariables.length; i++) { outputVar = outputVariables[i]; if (outputVar.name === "returnURL" && outputVar.value != "" && outputVar.value != null) { cmp.set("v.returnURL", outputVar.value); } } helper.navigateToReturnUrl(cmp); } }