• Resolved julianlaibach

    (@julianlaibach)


    Hello!

    I wondering if it′s possible to make a rule that does not redirect the user to a specific point of the site. My Problem is, that I need a global redirect everywhere just on one site I don’t want to use it because its a form and the user should come to the next step if the user logs in there.

    Thank you all
    Greetings Julian

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Hi Julian, sorry for the late reply due to holiday season. Unfortunately, it’s not possible to do this without custom-coding.

    I’m short on time to test this out, but this is along the lines of what you’d want:

    add_filter('lwa_ajax_login', function($return){
      if( wp_get_referer() == 'https://yoursite.com/the-page/' ){
        unset($return['redirect']);
      }
      return $return;
    });
    Thread Starter julianlaibach

    (@julianlaibach)

    Hey Marcus,
    thank you so much! tested it in the morning and everything is working perfect!
    Wish you a nice day,
    topic is closed ??
    Greetings Julian

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Excellent, nice to know it worked first go ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No redirect for a specific Page where the Login Class is used’ is closed to new replies.