0

I have a flow that is attached to a website button. When I am clicking the finish button it is redirecting to the initial page. I want to redirect it to a community site home page. So I have used three possibilities like

  1. I have created an Aura component and added an Iframe URL to the design but when I am using the Site Url it is showing the error "refused to Connect". I have added the same Site URL to the Remote Site Setting but still it is showing the same error.

  2. Another Aura Component I have created using NavigateToUrl :

My component Like below :

  <aura:component implements="force:lightningQuickAction,lightning:availableForFlowActions">
   <aura:attribute name="url" type="String" />
</aura:component>

JS:

    ({    invoke : function(component, event, helper) {
   // Get the url parameter
   var url = component.get("v.url");
   
   // Get the Lightning event that opens the url in a new tab
   var redirect = $A.get("e.force:navigateToURL");
   
   // Pass the url to the event
   redirect.setParams({
      'url': url
   });
        
   // Open the url
   redirect.fire();  
    
}})

I am using this component in the flow but after clicking the finish button it is not redirecting to any website. I am adding the URL on the URL parameter of the flow. The same Component I am using for the testing purpose on the home page and is working and redirecting to a new tab.

  1. Another possibility is to add retURL on the website button. Can anyone suggest how can I use the return URL?

Please check the three points and let me know how can I proceed or in which way I can proceed to do that I will redirect to that Site Home Page.

Thanks in advance Amit

0

By creating an Aura component with navigate URL and linking it to the flow finished is the one way. Other approach is to use flow actions in Aura.

Kindly refer the below link https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_config_for_flow_screens_replace_footer.htm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.