Hi @mpjevacevic
I checked this problem on the linked site and the problem seems to be caused by your theme.
Normally when you press our social button, that should open a popup but the parent page should not be redirected to the provider endpoint.
In your case the problem happens, because your theme adds a click event listener to our buttons via this code:
nLlk: function(e, t, n) {
var i = n("KcJ+");
function r(e, t, n, r) {
return function(n) {
n.delegateTarget = i(n.target, t),
n.delegateTarget && r.call(e, n)
}
}
e.exports = function(e, t, n, i, s) {
var a = r.apply(this, arguments);
return e.addEventListener(n, a, s),
{
destroy: function() {
e.removeEventListener(n, a, s)
}
}
}
}
in this file:
where you should replace “example.com” with your own domain name.
And with those codes, they make our links being opened also when they are clicked.
I can see that they target the “a” elements matching these selectors:
“a:not([target=”_blank”]):not([href^=”#”]):not([href^=”mailto:”]):not([data-no-swup]):not(#guest-checkout):not(.tinvwl_add_to_wishlist_button):not([href*=”lista-zelja”]):not([href*=”kosarica”]):not([href*=”blagajna”]):not([href*=”/moj-racun/”]):not(.lmp_button):not(.cli_settings_button):not(.wt-cli-accept-all-btn):not(.cli-nav-link.cli-settings-mobile):not(.cli-privacy-readmore):not(.cli_setting_save_button):not(.ced_my_account_reorder)”
and since we also use a elements, they catch us too.
I can see that with those selectors they are trying not to target certain a tags. So to fix this problem, you should get in touch with the developers of your theme and ask them to exclude our buttons from their codes, too. Maybe adding this to their list:
:not([href*=”loginSocial”])
will fix the problem.
Best regards,
Laszlo.