Hello!
Is anybody here from tech support?
Regards, Alex
Hi,
BuddyPress doesn’t have chat. Out of curiosity, what plugin are you using for chat?
I use Better Messages but it doesn’t matter. I deactivated this plugin and it didn’t help.
I see https://infosecportal.ru/wp-login.php/?redirect_to ...
when I try to open message in BP.
The URL provided in the email notification is just to a page that requires access by an appropriate logged-in user. The issue appears to be related to the process that is constructing the redirect URL. The example you provided appears to be mangled for an unknown reason:
https://infosecportal.ru/wp-login.php/?redirect_to=https%3A%2F%2Finfosecportal.ru%2Fpolzovateli%2Fpauls%2Fbp-messages%2F#/conversation/11
The slash that is after wp-login.php
seems to be misplaced, additionally, there should be a slash after 11
and then I would expect &bp-auth=1&action=bpnoaccess
after that.
The redirect is constructed in the function bp_core_no_access()
which can be viewed at the following URL for BP 14.3.4:
https://github.com/buddypress/buddypress/blob/14.3.4/src/bp-core/bp-core-catchuri.php#L328-L405
Typically, $mode is equal to 2 which will then execute the code represented by lines 371 through 381: i.e.:
case 2:
if ( ! empty( $redirect ) ) {
bp_core_redirect(
add_query_arg(
array(
'bp-auth' => 1,
'action' => 'bpnoaccess',
),
wp_login_url( $redirect )
)
);
$redirect should be the URL that is represented in the email notification. The function wp_login_url()
, which is a WordPress function, constructs/builds the redirect URL. The function wp_login_url()
without arguments should, in your case, return:
https://infosecportal.ru/wp-login.php
The fact that there is a slash after the .php
indicates that you should look there for why the slash is present, see the following regarding information on wp_login_url()
:
wp_login_url()
Thank you @emaralive.
Youzify plugin mangles redirect URL. I’ve written to their support forum.
Regards, Alex