Hi there,
try using the code that topic provided:
1. Create a new Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
2. Add the script to the Hook text area:
<script>
setTimeout(function(){
window.location.href = 'https://www.tutorialspoint.com/javascript/';
}, 5000);
</script>
Change the href to your home page.
3. Set the Hook to: wp_head
4. Set the Display Rules > Location to your thank you page.