• Resolved mufffuss

    (@mufffuss)


    Hey,

    im struggling to find a solution to redirect the user after a successful login to the current page (the page he chose to login).
    I tried to override the default values in the file “nextend-social-login”. I was setting any redirect default to “wp_get_referer(),”, but no success.

    Since the page a user visits is dynamic, I can’t set a fixed value. Right now I’m getting redirected to the front-page.

    Is there a built-in solution for that? Or are there placeholders for the redirect section in the administration?

    Thanks in advance.

    • This topic was modified 7 years, 9 months ago by mufffuss.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mufffuss

    (@mufffuss)

    Maybe worth noting, I’m using a bootstrap modal.

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @mufffuss!

    After a successful login Nextend Social Login redirects the user to the page where the Connect with <provider name> was clicked.

    However we have some settings which can force a page where the users shall be redirected after connecting with a social provider!
    So please make sure you don’t have a ‘Fixed redirect url’ selected, since that will make the user always be redirected to the specified URL. ( You could also unpick the ‘Default redirect url’ options – which redirects to the selected page, when no there was no redirect parameter in the URL! )
    These settings can be found in Global Settings>General tab.

    If you didn’t have any of these options selected, my next suggestion turning on the ‘Prevent external redirect overrides’ option:
    https://nextendweb.com/nextend-social-login-docs/global-settings/#external-redirect

    If neither of these worked for you, it is possible that you have a plugin that has a conflict and messes up the login redirection of NSL.
    So you could do a plugin conflict test:
    -deactivate all of your plugins except Nextend Social Login
    -check if the redirect works
    -if it works try activating your plugins one by one or in smaller groups until you find out which one causes the problem!

    In that case your problem still persists after following all these steps, please contact us on [email protected] and refer to this topic!

    Thread Starter mufffuss

    (@mufffuss)

    Hey, “Disable external redirects” did the trick for me, not sure why I haven’t tested this option yet.

    Thank you so much!

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @mufffuss!

    I am glad it worked for you!

    Usually some plugins are able to modify the redirect URL, which can cause behavior like this. Our ‘Disable external redirects’ usually works in filtering them out.

    Have a nice day!

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

The topic ‘Redirect to wp_get_referer’ is closed to new replies.