'Redirect to the product category page

I've created a product slideshow which works fine, but i want to be redirected by the actual products category archive page when i clicking on it. How to do that? Thanks for all the suggestions!

Here is my code:

<?php 
    $query = new WP_Query( array(
        'post_type' => 'product',
        'meta_query'    => array(
            array(
                'key'       => 'slideshow_',
                'value' => '',
                'compare' => '!=',
            ),
        ),
        'order' => 'DESC',
     ));

     while ($query->have_posts()) : $query->the_post(); ?>

     <?php $imgurl = get_field('slideshow_img');
     $size = 'large';
     if( $image ) {
        echo wp_get_attachment_image( $image, $size );
     } ?>

  <article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix slides fade' ); ?>   role="article">
     <a href="<?php get_category_link( $category->term_id ) ; ?>"  style="background- image:url('<?php echo $imgurl ?>');" class="slideimage">
     </a>
  </article>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source