Thanks for your reply Raj. I have placed my visualforce page(VFpage1) in another visualforce page(VFpage2) using IFRAME. The code is working in VFpage1, it is redirecting to custom tab. But when i click from VFpage2 it is not working. Can you please help in this. please find my code. <apex:commandButton action="{!manageSObjectOne}" value="redirect"/> Controller logic: public PageReference manageSObjectOne() { PageReference prRef = new PageReference('/a23/o'); prRef.setRedirect(true); return prRef;
Here is the code. Get the Tab URL dynamically by using dynamic apex
<apex:commandButton action="{!manageSObjectOne}" value="redirect"/>
Controller logic:
public PageReference manageSObjectOne() {
PageReference prRef = new PageReference('/a23/o');
prRef.setRedirect(true);
return prRef;
}