• Resolved ralph88

    (@ralph88)


    Hi there,

    We are using Super Socializer to for facebook login and it is working well. However, on our login page we need to be able to set the redirect url to be the redirect_to parameter in the query string as a user would have been on a single job page and clicked ‘Log in to apply’ which then takes them to the woocommerce login page.

    This works with the login with email and password as we are setting the redirect url with the redirect_to parameter however there doesn’t seem to be an option or redirect_to url in Super Socializer settings.

    Is there a way we could get this working with Super Socializer? It would also be a great feature as being able to set the redirect_url param on login screens is really helpful for many sites.

    Thanks!

    Ralph

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Heateor Support

    (@heateor)

    Hi Ralph,

    If there is redirect_to parameter in the querystring at the webpage where social login icons are positioned, after social login user will be redirected to the url specified in redirect_to parameter.
    You can try it yourself by appending a url in redirect_to parameter at the webpage where social login icons are positioned and try social login.

    Thread Starter ralph88

    (@ralph88)

    Hi there,

    Thanks for you reply.

    We it is working indeed, thanks. However we needed to put a query string into our redirect_url of ?apply=true so that when they are redirected back to a job page the apply overlay is loaded automatically.

    We traced this back to your regex on line 524 of super_socializer.php. We have had to amend the regex to allow query strings. Would you consider altering the regex in the core plugin as we couldn’t see another alternative?

    Our code now looks like this.

    /**
    * Validate url
    */
    function the_champ_validate_url($url){
    $expression = “/^(http:\/\/|https:\/\/|ftp:\/\/|ftps:\/\/|)?[a-z0-9_\-]+[a-z0-9_\-\.]+\.[a-z]{2,4}(\/+[\?\=a-z0-9_\.\-\/]*)?$/i”;
    return (bool)preg_match($expression, $url);
    }

    Thanks

    Ralph

    • This reply was modified 7 years, 7 months ago by ralph88.
    Plugin Author Heateor Support

    (@heateor)

    Okay. Sure, we will amend it and include in the next version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect to referrer page’ is closed to new replies.