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
pierrefrazny.ax358pierrefrazny.ax358 

How to redirect a click on a tab to a view

Hi,

When  a user clicks on a tab, I would like the user to a specific URL (a SF view). I understand that I can create a VisualForce page and then redirect the tab to it but I don't know what the VF code to use.  Could someone help?

Thanks

Pierre

krishnagkrishnag

you can write in html as <ahref>

krishnagkrishnag

in ur case the tab acts like like a outputlink.So you cna use <apex:outputlink>tags

aballardaballard

Not clear to me what you are trying to do.  If you want a tab on a standard page that goes to a visualforce page, then look at setup/create/tabs/ visualforce tabs which lets you do that directly. 

 

pierrefrazny.ax358pierrefrazny.ax358

Hi Krishnag,

I created a VF page with: "<apex:outputLink value="/a0K">My Page</apex:outputLink>" and override the standard tab in question to this new page.

Now when I click on the tab, I see a VF page with a link "My Page". If I click on this link it takes me to the right page.

What I would like is the user to be taken to the final page ("/a0K") directly -- without having to click on a link.

Is that possible?

Thanks

Pierre