Сначала я предлагаю добавить класс к тегу <tr>
(поэтому, если вы планируете иметь несколько таблиц на странице, это не повлияет на другую таблицу)
Затем я предполагаю, что вы используете jquery, и вы есть динамические c строки таблицы.
#.link is the class <tr class="link" data-href="https://google.com">...</tr>
#:not(a) => added this so you can add other link `<a>` to your row (remove it if not needed...)
// same page redirect
$(document).on('click', 'tr.link:not(a)', function(e){
e.stopPropagation(); // only add this if you have <a> tag in row
window.location.href = $(this).data('href'); // dynamic link
});
// new tab redirect
$(document).on('click', 'tr.link', function(){
$('<a href="'+ $(this).attr('data-href') +'" target="_blank">External Link</a>')[0].click();
});