Plugin Support
Laszlo
(@laszloszalvak)
Hi @priojitsingh
When “Prefer popup” option is selected at our “Target window” setting, we:
- open a new popup window
- redirects it to the endpoint of our provider
- meanwhile, we prevent the default behavior of the click on the button in the opener window using e.preventDefault(), since as a fallback ( e.g. for cases when our scripts are missing for some reason ) we also has the link of our OAuth endpoints added into the href attribute of the link. So default click needs to be prevented, to avoid the double redirection that you experienced.
So if the redirection is triggered in both the popup and the opener window, that means you have a third party script on your site, that reads the href attribute of the links and triggers a redirect with JavaScript.
To find the source of the script, you should do a plugin/theme conflict test, so you should:
- change your theme to a WordPress default one like Twenty Twenty-One
- disable all plugins except Nextend Social Login
- check the buttons on the frontend, if they no longer trigger a redirection at both places, that confirms that the problem is caused by a code that came from a plugin or your theme
- start enabling the plugins one by one or in small groups, then check the results each time, once the redirection problem occurs again, you managed to find the plugin that causes the problem
Once you found the plugin that causes the problem, you should contact its developers and ask them how you could exclude links from their redirection, e.g. we have this data attribute on all of our buttons:
so they could do the exclusion based on this.
Best regards,
Laszlo.