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
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.
SarfarajSarfaraj
Hi Priyanka

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