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
Derek M HughesDerek M Hughes 

Return to previous page from action override Lighting Component

I have used a Lighting Component to override the edit action.  This is working well.  However the Edit button appears in multiple locations - on a record detail page, on list view and on a related records list.

When a user saves, how can I return to the original location from where the edit action was invoked?  

PS: Using window.history.back() does navigate to the correct page, but it is not refreshed making it look to the user that the edit that he/she has just done was not successful.