Go to dashboard > SpeakOut! > petitions > edit the petition >
In the right hand column, 5th item down check the box Redirect after successful sign and then add the URL in the text box that is revealed.
I’ve already figured it out. I specified the link, but it opens in the same window, I need the link to open in a new window.
I filled out the form and clicked Submit. Some time passes, and the link I specified opens. But it opens in the same window, I need it to open in a new window.
Ok. I will add this in the next release. It is a good idea, thanks.
Hey. I have added this for version 2.0.0 but it isn’t going to work as you or I would like.
Modern browsers see this behaviour as a pop-up and thanks to spammers and scammy websites pop-ups are blocked by default.
I am not sure there is a way around it.
I’m talking through a translator, translating a little wrong)))
Friend, I need the link that I specified to open in a new browser tab. There is a target_blank function, where to insert it?
I have explained. It will be in the next version which will be released maybe this week.
But it will not work like you want because browsers see it as a popup and they block it.
If you REALLY want to do it now,
Open wp-content/plugins/speakout/js/public.js (you need to do the same in public-gr.js) and find at about line 152 window.location.href = redirect_url;
replace it with
var redirectWindow = window.open(redirect_url, '_blank');
$.ajax({
type: 'POST',
url: '/echo/json/',
success: function (data) {
redirectWindow.location;
}
});
}
That is part of the entire page code. I haven’t tested just switching it by itself.
Thank you very much friend, I will check and then report the result ))