+ Start a Discussion
vinay maladkar 11vinay maladkar 11 

SF Lightning - Hitting custom tab to show a visualforce page, causes the url size to grow high and page becomes non-responsive

Hi,
I have a custom tab to show a custom visualforce page. In lightning, the page url grows very high when I navigate to this tab and opportunity tab two to three times. This causes tab to be non-responsive. Looks like its appending the recursive history into the url.

This happends only in lightning experience.

Any clue or workaround would help.

Thanks
Vinay
Ajinkya1225Ajinkya1225
Hi Vinay,

Welcome to lightning! I have faced the similar issue couple of weeks back. We had to create a dummy VF page (tab) which would direct the page to the desired VF page.

Here is the snippet-

Step 1: This is going to be your dummy Visualforce Page:
<apex:page controller="RedirectController" action="{!redirectPage}" >
</apex:page>
Controller:
public class RedirectController{

    public pageReference redirectPage(){
        PageReference pageRef = new PageReference('/apex/your_vf_page'); // give the vf page you want to redirect to 
	pageRef.setRedirect(true); 
	return pageRef;
    }
}

Step 2: Give the appropriate VF page name in the RedirectController.

Step 3: Create a visualforce page tab of the dummy page created in Step 1.

This should solve your issue! 

Again, this is just a hack till salesforce fixes the bug.

Please upvote and mark this answer as solved, if it helped you.
Cheers!
Ajinkya Deshmukh