79397689

Date: 2025-01-29 17:51:21
Score: 0.5
Natty:
Report link

I finally figured this out right after posting the question

replacing the

 return RedirectToLocal(returnUrl);

with this line of code

return Content("<script> if(window.opener) {window.opener.location.reload(); window.close();} else{window.location = '" + Url.Action("Index", "Home") + "';} </script>", "text/html");

so passing back javascript to check for the popup, which will close it, and also refresh the page.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Eric