A "solution" that works fine on my site :
in the file : components\com_comprofiler\comprofiler.php
comment lines 1722 and 1724 and insert line 1724 like this:
// $url=cbSef( "index.php?option=com_comprofiler&task=userProfile&user=" . $connectionid . $andItemid );
echo "<script type=\"text/javascript\"> alert('".addslashes(htmlspecialchars($cbCon->getUserMSG()))."'); </script>\n";
echo "<script type=\"text/javascript\">history.go(-1);</script>\n";
// document.location.href='".cbUnHtmlspecialchars($url)."';</script>\n";
the "history.go(-1)" forces the browser to go back to the previous page
Best regards,
Bruno