contact form redirect without a plugin code example
Example: contact form 7 redirect after submission without a plugin
<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
location = 'http://example.com/';
}, false );
</script>