Skip to:
Content
Pages
Categories
Search
Top
Bottom

Logout Link Redirects to Topic


  • drinkingsouls
    Participant

    @drinkingsouls

    Hi Guys,
    I’ve come across an issue with the logout link in the bbpress login widget and I’d appreciate some help.
    When clicking the logout link it redirects to the first forum titled “Comments and Suggestions”.
    Does anyone know why it would be redirecting here? I don’t want the user to be directed here after logging out as it makes no sense.
    I’ve looked in the widgets.php file and this is the logout link code:
    <?php bbp_logout_link(); ?>
    Why would this be redirecting?
    Any help would be appreciated.
    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)

  • drinkingsouls
    Participant

    @drinkingsouls

    This is the login link that is generated in the HTML:
    <a href='http://52.webshrimp.uk/wp-login.php?action=logout&redirect_to=http%3A%2F%2F52.webshrimp.uk%2Fchat%2Fcomments-suggestions%2F&_wpnonce=302ba1641f'>Log Out</a>


    Robkk
    Moderator

    @robkk

    What happens if you logout from the WordPress toolbar, which has nothing to do with bbPress?? If you come across the same issue something is just redirecting you.

    You might have to do some troubleshooting

    Troubleshooting

    <?php bbp_logout_link(); ?> pretty much uses wp_logout_url{} in WordPress.

    https://codex.wordpress.org/Function_Reference/wp_logout_url


    drinkingsouls
    Participant

    @drinkingsouls

    My replies with code won’t post for some reason..


    Robkk
    Moderator

    @robkk

    max links allowed in posts are 2 this includes links in embedded images.

    You can remove the http:// from the code, I would know what you are talking about.


    drinkingsouls
    Participant

    @drinkingsouls

    Basically when I activate bbPress on my blog the log out links no longer work. It seems to append a redirect to the end of log out links which prevents it from working. I’m not sure why but it’s definitely to do with bbPress.

    Here is the logout anchor tag when bbPress is deactivated (works)
    <a href="http://test.webshrimp.uk/wp-login.php?action=logout&_wpnonce=1ef350795a">Log out</a>

    Here is the anchor tag when bbPress is activated – doesn’t do anything
    <a href="http://test.webshrimp.uk/wp-login.php?action=logout&_wpnonce=1ef350795a&redirect_to=http%3A%2F%2Ftest.webshrimp.uk%2F%3Floggedout%3Dtrue">Log out</a>

    Any help would be greatly appreciated.
    Thank you.


    drinkingsouls
    Participant

    @drinkingsouls

    I created a fresh install of WordPress and bbpress here:
    test.webshrimp.uk
    BBpress is currently activated, note how the logout links are not working. As soon as I deactivate Bbpress it works fine


    Robkk
    Moderator

    @robkk

    With bbPress activated and logging out from the backend using the WordPress toolbar.

    http://localhost/mysite/wp-login.php?loggedout=true

    Without bbPress activated and logging out from the backend using the WordPress toolbar.

    http://localhost/mysite/wp-login.php?loggedout=true

    With bbPress activated and logging out from the bbPress login widget on my front page.

    localhost/mysite/?loggedout=true

    Did you already go through some troubleshooting to see if it was an issue in your plugins or theme??


    drinkingsouls
    Participant

    @drinkingsouls

    Yes, I did.
    I created a fresh install of wordpress here: test.webshrimp.uk
    The only plugin activated is bbpress and the logout doesn’t work. As soon as it is deactivated the logout link works. It is 100% bbpress causing the issue. I don’t know why it is appending redirect links to the logout button either.
    Thanks


    Robkk
    Moderator

    @robkk

    Alright I might report this as a bug, but I need steps to duplicate the issue. And could you answer these questions to help me, know where you are at?

    Are you running any special bbPress set up?
    Does this happen to all user roles?
    I am going to assume on your fresh install you just have the latest stable version of bbPress and WordPress and no other plugins activated while using a default theme?


    drinkingsouls
    Participant

    @drinkingsouls

    Are you running any special bbPress set up?
    – I’m just running the default bbPress fresh from install

    Does this happen to all user roles?
    – Yes, it happens to all roles

    I am going to assume on your fresh install you just have the latest stable version of bbPress and WordPress and no other plugins activated while using a default theme?
    – Yes. I am using Twenty Fifteen theme. Up to date. No other plugins activated. The moment I activate bbPress users can no longer log out.

    Thanks


    drinkingsouls
    Participant

    @drinkingsouls

    If it helps you are welcome to login and test it out. I can send you login details for admin and user. I only setup the site to test this issue.


    Robkk
    Moderator

    @robkk

    send the details to my email, but only for subscriber/participant role for now.

    Contact

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Skip to toolbar