title: Get the Product tag URL in WooCommerce
body: <p>I've been using product tags as brand for products in my shop. The following code which I have found online has been working fine (until the recent update of woocommerce and WP) to make a list on my "brands" page. It lists all brands under each specific category letter.</p>
  
  <p>Suddenly no URLs are being generated, everything else is populated as it should. I really can't find the issue. I have tried to modify <code>get_terms</code> to <code>get_terms(array('taxonomy'=&gt;'product_tag'))</code> but it's not working either.</p>
  
  <p>This is my code:</p>
  
  <pre><code>$list = '';
  $tags = get_terms( 'product_tag' );
  $groups = array();
  if( $tags &amp;&amp; is_array( $tags ) ) {
      foreach( $tags as $tag ) {
          $first_letter = strtoupper( $tag-&gt;name[0] );
          $groups[ $first_letter ][] = $tag;
      }
      if( !empty( $groups ) ) {
          foreach( $groups as $letter =&gt; $tags ) {
              $list .= "\n\t" . '&lt;div class="brand_category_container"&gt;';
              $list .= "\n\t" . '&lt;h4 class="cateogry_letter"&gt;' . apply_filters( 'the_title', $letter ) . '&lt;/h2&gt;';
              $list .= "\n\t" . '&lt;ul&gt;';
              foreach( $tags as $tag ) {
                  $url = get_tag_link( $tag-&gt;term_id );
                  $count = intval( $tag-&gt;count );
                  $name = apply_filters( 'the_title', $tag-&gt;name );
                  $list .= "\n\t\t" . '&lt;li&gt;&lt;a class="category_links" href="' . $url . '"&gt;' . $name . '&lt;/a&gt;&lt;/li&gt;';
                  }
              $list .= "\n\t" . '&lt;/ul&gt;&lt;/li&gt;';
              $list .= "\n\t" . '&lt;/div&gt;';
          }
      }
  } else $list .= "\n\t" . '&lt;p&gt;Sorry, but no tags were found&lt;/p&gt;';
  </code></pre>
  
  <p>on my product pages I list the brands with</p>
  
  <pre><code>$tag_count = sizeof( get_the_terms( $post-&gt;ID, 'product_tag' ) );
  ?&gt;
  &lt;div class="single_productbrand"&gt;
      &lt;?php echo $product-&gt;get_tags( ', ', '&lt;span class="brand_as"&gt;' . _n( '', '', $tag_count, 'woocommerce' ) . ' ', '&lt;/span&gt;' ); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and it works as it should</p>
  
  <p>How can I get the URLs back?</p>