Auto redirect from one page to another after 5 seconds

After a user submits a form and goes to a thank you page, I’d like to automatically redirect them back to the last page they were on after a certain amount of time (example, 5 seconds). Is this possible in Webflow?

You could add some script to your thank you page.

setTimeout(function() {
    var previousPage = document.referrer;
    if (previousPage) {
        window.location.href = previousPage;
    } else {
        // Optionally redirect to a default page if no referrer exists
        // window.location.href = '/default-page-url';
}, 5000); // 5000ms equals 5 seconds