diff --git a/assets/listing.js b/assets/listing.js index 9ff7365..1c397eb 100644 --- a/assets/listing.js +++ b/assets/listing.js @@ -67,7 +67,10 @@ document.addEventListener('DOMContentLoaded', () => { const visibleRows = rows.filter(row => row.style.display === 'table-row') if (visibleRows.length === 1) { - window.location = visibleRows[0].querySelector('td a').href + const target = visibleRows[0].querySelector('td a').href + if (target.substr(-1) === '/') { + window.location = target + } } }) })