0

Good afternoon! I need to redirect the user to a new page from a click of a standard button. However, I need this redirection to be done in the same window.

To do this, I created a button pointing to my lightning redirect component:

enter image description here

The redirect occurs correctly, but for 2 seconds the component appears on the screen, and this cannot happen:

enter image description here

enter image description here

After this white square appears the page is redirected. In the helper of my component I perform an apex query to know which page I should direct. Could this be delaying the process? Or is there a way to make the component not appear but perform what it needs?

0

What does your redirect code look like? Are you redirecting to another page in Salesforce or somewhere else on the web?

Unfortunately, you will always receive that white panel pop up when you click the Action but you can use CSS to make it fully transparent. Additionally, you can also use the Close Quick Action to close the panel instantly.

Try adding this to your aura component markup to make it transparent:

    <!-- Make modal background transparent -->
<aura:html tag="style">
    .slds-backdrop {
    background: rgba(43, 40, 38, 0) !important;
    }
    .backgroundSpinner{
    background: rgba(0, 0, 0, 0) !important;
    }
    .modal-body {
    background: rgba(0, 0, 0, 0) !important;
    box-shadow: none !important;
    }
    .closeIcon {
    display:none !important;
    }
    .desktop {
    overflow: visible !important;
    }
</aura:html>   

Try adding this to your controller function to close the panel:

$A.get("e.force:closeQuickAction").fire();
| improve this answer | |

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.