+ Start a Discussion
Priyanka ChandrakanthPriyanka Chandrakanth 

Outputlink navigation control

<apex:outputLink value="IF($CurrentPage==$Page.A,{!LOWER($Page.A)},{!LOWER($Page.B)})">Home</apex:outputLink>

Can anyone please tell me if this is valid? I am trying to control the navigtion of Home hyperlink on page. When I am trying to use the above code, it throws an error, URL No Longer Exists.
Thanks in advance.
Hi Priyanka

Use this instead,
<apex:outputLink value="{!IF(LOWER('/apex/'+$CurrentPage.Name) == LOWER($Page.A), $Page.A, $Page.B)}">Home</apex:outputLink>