Reply To: Log In / Log out Widget Redirection
The logout link is created on ~Line 84 of this file:
buddypress\bp-core\classes\class-bp-core-login-widget.php
You need to change the bp_get_requested_url() to site_url()
<a class="logout" href="<?php echo wp_logout_url( bp_get_requested_url() ); ?>">
However, hacking core files is not recommended.
The proper approach is to create your own widget and make the changes in your widget.
If you decide to write your own widget, also take a look at this file:
buddypress\bp-core\bp-core-widgets.php