Get category link to widget


I add this code and is working good, but open different category link, Any idea?

    $  category = get_the_category();  if($  category[0]){     echo '<p class="read-more-custom-widget">';     echo '<a href="'.get_category_link($  category[0]->term_id ).'"title="Read More">Read More &raquo;</a>';     echo '</p>'; }