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
Quddus Ololade 4Quddus Ololade 4 

How to reload standard detail lightning page after clicking on a custom button

I am using a custom button having VF behaviour on contail detail page
<apex:page standardController="Contact" extensions="ContactController" action="{!logrecord}" showHeader="false" sidebar="false">
<script type = "text/javascript">
alert(document.location.href);
}
</script>
</apex:page>

The action logrecord is a page reference method return type which navigates to an internal URL.
Once I click the custom button (VF page), How can I refresh the standard contact lightning detail page? I tried with window object and DOM element as well but no luck.

Any suggestions?
Raj VakatiRaj Vakati
Try to use force:refreshView EVENT 
Quddus Ololade 4Quddus Ololade 4
But I am using VF here