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
Richard Houston GMURichard Houston GMU 

Change owner visualforce link in Lightning?

Hi,

I have an existing visualforce page that has a link to change the owner of a case
 
<apex:page showchat="False" controller="casePollList" lightningStylesheets="true">
<apex:outputLink value="{!'/'+c.id+'/a?retURL=%2F'+c.id+'&newOwn=' + $User.FirstName+' '+ $User.LastName}">[Accept Case]</apex:outputLink>
</apex:page>
When viewed in lightning the link breaks as it send the user back to class.

How can I get the Change Case Owner overlay on the visualforce page? 

User-added image
 Is it then also possible to prepopulate that with the logged in User?

Is there a better way to handle this? 

Thanks in advance!
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Richard, hope it helps.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar