The cool thing about the Contact Form 7 is the ajax part.
However sometimes we need to do some post action.
Go to the admin panel -> Edit your forum -> Additional Settings
Add the following line:
on_sent_ok: "location = 'http://www.example.com/thank-you/';"
Now when submit the form you'll be redirected to that thank you page 😉