You need to sign in to do that
Don't have an account?
Jonathan Spink
Coding link which works for Lightning and Community
I've had to rewrite an Apex Link so it works both in Lightning and inside a Community - but it's clunky as I've had to hard code the community name ('volunteermanagement'):
<apex:outputLink value="/{!pos.account.id}" rendered="{!$User.UIThemeDisplayed == 'Theme4d'}" target="_top">{!pos.account.name}</apex:outputLink>
<apex:outputLink value="/volunteermanagement/s/detail/{!pos.account.id}" rendered="{!$User.UIThemeDisplayed != 'Theme4d'}" target="_top">{!pos.account.name}</apex:outputLink>
Can you advise me on something which only requires one statement?
Many thanks
<apex:outputLink value="/{!pos.account.id}" rendered="{!$User.UIThemeDisplayed == 'Theme4d'}" target="_top">{!pos.account.name}</apex:outputLink>
<apex:outputLink value="/volunteermanagement/s/detail/{!pos.account.id}" rendered="{!$User.UIThemeDisplayed != 'Theme4d'}" target="_top">{!pos.account.name}</apex:outputLink>
Can you advise me on something which only requires one statement?
Many thanks
I am afraid there isn't any other way
I looked at some samples in the documentation and I see the same approach
All Answers
I am afraid there isn't any other way
I looked at some samples in the documentation and I see the same approach