• Resolved jeka2365

    (@jeka2365)


    Hi, help me please. How to make redirect appear in a new window? I filled out the petition form, clicked on the sign button and then I should return to the main page but in a new window.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author SpeakOut!

    (@123host)

    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.

    Thread Starter jeka2365

    (@jeka2365)

    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.

    Thread Starter jeka2365

    (@jeka2365)

    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.

    Plugin Author SpeakOut!

    (@123host)

    Ok. I will add this in the next release. It is a good idea, thanks.

    Plugin Author SpeakOut!

    (@123host)

    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.

    Thread Starter jeka2365

    (@jeka2365)

    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?

    Plugin Author SpeakOut!

    (@123host)

    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.

    Thread Starter jeka2365

    (@jeka2365)

    Thank you very much friend, I will check and then report the result ))

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Redirect a new tab’ is closed to new replies.