Use Search Term in html link and redirect

i want to make a redirect with the search from users term/query from the user. the term should be after the s= and before the &post_type=post

thanks for help

this is my code but i get critical error on wordpress:

<p class="woocommerce-info"><?php wp_redirect( ""<?php echo get_search_query(); ?>"&post_type=post" ); ?></p>