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
Venkat  163Venkat 163 

how to navigate to lightning view by clicking command link from vf page

as per business requirement created one visual force page using slds and provided one link by using command link in that link refered one vf page(if user clicking on link it should navigate to lightning view), provided vf page using for both clasic view as well as lightning by $User.UIThemeDisplayed, if $User.UIThemeDisplayed=='Theme4d' it will show lightning block of code , if $User.UIThemeDisplayed=='Theme3' it will display classic view code by using rendered.

after switching to lightning if I am clicking on link it shold show lightning block of code but  it is showing classic code.

how can I navigative to lightning view by clicking on link from vf page ?
Please let me know while providing link by using pagereference, how to refere lightning view?