function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rajat Mahajan 21Rajat Mahajan 21 

Tab changes to Home Page - When i navigate to another VF page from CommandButton

Hi All

Can someone please help me with this issue.
I am redirecting from one VF page to another. By doing so, the tab auto changes from the current one to Home Page tab.
Is there a way to stop this behaviour?

Thanks in Advance

Regards
Rajat
Best Answer chosen by Rajat Mahajan 21
Amit Chaudhary 8Amit Chaudhary 8

Please try tabStyle in VF page

<apex:page standardController="Account" tabStyle="Opportunity"> </apex:page>

Please let us know if this will help you

Thanks,
Amit Chaudhary