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:
The redirect occurs correctly, but for 2 seconds the component appears on the screen, and this cannot happen:
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?