• Resolved casusbene

    (@casusbene)


    Hi Aurovrata,

    thanks for your outstanding contribution to WordPress! I wouldn’t want to miss your Smart Grid additions to CF7.

    However, I have a problem where the redirect does not redirect anymore. I know it used to work, but now it does not trigger after the mail is sent (successfully). I don’t see any errors in the console.

    Do you have any ideas?

    Kind regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter casusbene

    (@casusbene)

    I chose to solve it via script:

    <script>
    document.addEventListener( 'wpcf7mailsent', function( event ) {
    ????setTimeout( () => {
    ????????location = 'https://example.com/';
    ????}, 500 ); // Wait for 0.5 seconds to redirect.
    }, false);
    </script>

    However, I still hope for a solution to use your built-in function again.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    The redirection still works as expected on my test server.

    I reckon you have an other js error on your form page that prevents the redirection script (loaded with the plugin) to function properly. Check your browser console for any js errors.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    ps:

    thanks for your outstanding contribution to WordPress!

    thank you for the kind words ??

    Thread Starter casusbene

    (@casusbene)

    As I said, there are no console errors and none in the log. I could have gone from there… ???♂?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    As I said, there are no console errors and none in the log.?

    ah yes, you did say so in your initial post.

    Can you confirm that the plugin’s cf7-grid-layout/public/js/cf7-grid-layout-public.js is loaded properly on your form page?

    Can you also check the js variable cf7sg which is initialised on your page with the redirection url configured, it will have an array entry for your form id with a redirect parameter set to the page url it should redirect to.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirect not redirecting’ is closed to new replies.