+ Start a Discussion
Rajat Mahajan 21Rajat Mahajan 21 

Tab auto changes to Home Page Tab when i navigate from one vf to another - Please help!!

Hi

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

All Answers

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
This was selected as the best answer
Niraj Kr SinghNiraj Kr Singh

Hi Rajat

If you want to redirect on some specific tab for the another page, for that you need to include an attribute 'tabStyle' in <apex:page> .
Like: 
<apex:page controller="ControllerName" sidebar="false" tabStyle="Opportunity">


Thanks & Regards

Niraj Singh

Rajat Mahajan 21Rajat Mahajan 21
Thanks a lot , its fixed!
Niraj Kr SinghNiraj Kr Singh
Hi Rajat 

If you want redirect to your another VF page tab then you can use your another page by appended with '__tab'.
Like : tabStyle="TestPage__tab"

Ex: 
<apex:page controller="ControllerName" sidebar="false" tabStyle="TestPage__tab">

It will redirect to your specified VF page tab.
If it is usefull for you, Please mark as your answer. 

Thanks & Regards

Niraj Singh