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 getting changed to Home Page Tab - on VisualForce Page change on command button

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

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

Amit Chaudhary