Okay
  Public Ticket #2168283
Redirected to the wrong page after login
Open

Comments

  •  4
    Petro started the conversation

    Hello dear Woffice team,

    I have such an issue. When I login in Customer or Staff  Role,  I should be redirected to the homepage. Thats the setting I've set in Theme Settings.

    But, Im not redirected to Homepage. Im redirected to this page.

    http://www.teameo.de/wp-admin/profile.php

    How can  I fix this? Can you fix this please?
    Thank you for your help!
    Best regards,
    Petro Kozak

  •  292
    Abhishek replied

    Hello,

    Can you share your settings screenshot.

    Let me know

    Kind Regards,

    Abhishek 

    Want feedback on your awesome Intranet? Get yourself a beta access on Feedier.com.

    Keen on Woffice ? Please take a few seconds to give us a 5-star review on ThemeForest.

  •  4
    Petro replied

    Hello,
    here's the screenshot of settings. 

    https://prnt.sc/pdawr0


    Best regards,
    Petro Kozak

  •  292
    Abhishek replied

    Can you deactivate the plugin you are using for two factor authentication, and let me know if the issue still persists.

    Kind Regards,

    Abhishek 

    Want feedback on your awesome Intranet? Get yourself a beta access on Feedier.com.

    Keen on Woffice ? Please take a few seconds to give us a 5-star review on ThemeForest.

  •  4
    Petro replied

    Hello,


    Yes, the issue still persists even if Security plugin is deactiveted. 

    I want to add one more thing to the issue description:  the issue appear only by the first login. When the user logged in one time, then logged out and logged in for the second time in the same browser, then redirection is correct. The redirection is wrong only by the first login.
    Best regards,
    Petro Kozak

  •  631
    François replied

    Hi Petro, 

    So it's not from Woffice, nor from BuddyPress, I checked and I don't see any reference to that page in both project. 

    It's very likely caused by a plugin over-writing the Woffice redirection. 

    Do you have any membership related plugin enabled? 

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  4
    Petro replied

    Hello,

    no, we dont have any membership plugin neither enabled, nor even installed.

    Best regards,
    Petro Kozak

  •  631
    François replied

    Hi Petro, 

    Okay looking into it but cannot reproduce it on our end so it'll be tricky to help more here.

    Keeping you posted

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  4
    Petro replied

    Hello Francois,

    is it not enough to have our Admin and FTP  Data to solve it?)

    Best regards,
    Petro Kozak

  •  631
    François replied

    Hello, 

    Nope didn't find the issue. Can you deactivate all plugins except: Unyson, BuddyPress and Woffice-Core. Is the issue still there? 

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  4
    Petro replied

    Hello Francois,

    sorry for the late response. I tried to deactivate everything except Unyson, BuddyPress and Woffice Core. Unfortunately, the issue is still there.

    Hope you will find the way to solve it.

    Thank you in advance for your help and support.

    Best regards,
    Petro Kozak 

  •  631
    François replied

    Hi Petro, 

    When you say "only on the first time", do you mean that it's after registering or it's after register and login for the first time? Can you give us more details so we can find where is the redirection happening?

    You can try this in your child theme's function.php to force the after login redirection from Woffice to go to the home page: 

    function woffice_get_redirect_page_after_login() {
            return home_url();
        }
    

    Have a nice day

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  4
    Petro replied

    Hello Francois,

    I tried the function that you've sent me. Unfortunately it doesnt work. 
    "Only on the first time" means first login attempt in browser.  When I login to website either in Chrome or in Firefox or in Opera browser for the first time, the redirection is wrong. 
    When I log out and log in again, the redirection is ok.

    When I close the browser, the open it again and try to log in, redirection is wrong.

    You should've had the Admin and FTP data of my website. I can also sent you data of a Test User from my website, so that you have an opportunity to test this from both, Admin and Customer Roles. 

    Because its always better to look once then to hear (or in our case read) 100 times.

    Will it be a suitable solution for you?

    Because telling you or sending screenshot etc will take much more time then just to look at the issue once.

    Best regards,
    Petro Kozak

  •  631
    François replied

    Hi Petro, 

    Yup works for me. Please send me some credentials with a user having the issue so I can have a look (in a private comment). 

    Keep me posted

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •   Petro replied privately
  •  631
    François replied

    Okay, see the issue. As far as I see the Woffice redirection doesn't happen and the WordPress default one takes over. If the user can access to the admin side, it's the normal behavior with Woffice, we don't change that. 

    You can use this plugin: https://wordpress.org/plugins/peters-login-redirect/ for the subscribers or ones that should have 0 access to your Dashboard. 

    There are other options available through WordPress plugins, which is the easiest way to go around that issue. 

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/