How can I modify the login button link created by BuddyPress on wp-admin bar?

I have BuddyPress installed on the site and the admin bar activated on it. When I click on the Login button I get this:
example.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.example.com%2F

How can I remove this redirect thing?

I tried using Ultimate Branding Network Wide Text Change, but the URL only changes if I’m using the Opera browser (it keeps displaying the redirection text on Chrome, Edge, Firefox and IE; on Windows 10)

Its redirecting after login to the site I came from, but I want to remove it from the URL and still redirect there.

Is this possible?