Custom button which run javascript that do ajax request on custom action controller.
If result is ok then i would to refresh the detail view where the button is placed.
Tried this:
let url = window.location.href;
SUGAR.ajaxUI.loadContent(url);
but it gives me an error:
Invalid URL
Any help would be appreciate.
And also is there any way to refresh only some fields instead the whole page?