Plugin Support
Laszlo
(@laszloszalvak)
Hi @wordformula
The problem will be related to the custom button of your theme.
If you inspect the HTML of your button, you will notice that, there is an onclick event on those buttons, for example the Facebook button:
<a href="https://_oursite_.com/wp-login.php?loginFacebook=1&redirect=https%3A%2F%2F_oursite_.com%2Ffinalizar-a-compra%2F" class="button social-button large facebook circle" onclick="window.location = 'https://_oursite_.com/wp-login.php?loginFacebook=1&redirect=https%3A%2F%2F_oursite_.com%2Ffinalizar-a-compra%2F'+window.location.href; return false;"><i class="icon-facebook"></i>
<span>Iniciar sessão com o Facebook</span></a>
As you can see the url of the current page is added with JavaScript:
window.location.href
after the URL.
So the URL will look something like:
https://example.com/https:example.com
and that is the problem.
You can confirm this if you console.log the url you find in the onclick event like:
console.log('https://_oursite_.com/wp-login.php?loginFacebook=1&redirect=https%3A%2F%2F_oursite_.com%2Ffinalizar-a-compra%2F'+window.location.href);
and decode the URL. You will receive the url after the “redirect” url parameter where you will be redirected to.
Here is the URL decoded URL:
https://_oursite_.com/wp-login.php?loginFacebook=1&redirect=https://_oursite_.com/finalizar-a-compra/https://_oursite_.com/finalizar-a-compra/
So to fix the problem I would suggest either:
-getting in touch with Flatsome
-or manually replacing the social buttons of your theme with the social buttons of Nextend Social Login. Here you can find a guide: https://nextendweb.com/nextend-social-login-docs/flatsome-replacing-social-buttons/
Ps.:
As far as I know, Flatsome made their integration that way, if Nextend Social Login Pro Addon is enabled, they will hide their custom social buttons. So if you have the Pro Addon installed, our buttons will replace the buttons of Flatsome.
Note:
If you would have also a questions related to the Pro Addon, then please rather open a support ticket:
https://nextendweb.com/contact-us/nextend-social-login-support/
Since here we can only provide help for the Free version.
Best regards,
Laszlo.
Wow. That is a fast, comprehensive response!
Thank you! I will contact the theme developers.
We will also consider implementing your pro plugin across all our sites.
Best regards,
José
Wordformula