• Resolved tlouwet

    (@tlouwet)


    At the moment, if someone updates their profile, they get redirected to the profile page.

    I have a profile page for non-wp users, but also one in the user account page.

    Is it possible for them to get sent back to the page they were on instead?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tlouwet

    (@tlouwet)

    As always, the moment I open a thread about it, shortly after I find a solution to the “issue”.

    in profile.php > switch ($action) > cases I want :

    if( is_user_logged_in() ){wp_redirect('url string');}
    else { wp_redirect($profile_url); }

    That lets the person then stay on the page they updated their profile from.
    Did same in unsubscription.php where needed.

    This “fixed” that for me, though it forcing a different tab when unsubbing is a bit annoying, can’t find what’s causing it.

    Thread Starter tlouwet

    (@tlouwet)

    By simply adding the same type of code to the correct unsub cases it “fixed it for me”.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘redirection’ is closed to new replies.