Skip to content

Commit c670092

Browse files
committed
fix: Update tab click behavior to use history API for better navigation
1 parent cb7ebeb commit c670092

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sharing-server/src/routes/dashboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ function dashboardPage(user: UserRow, uploads: UploadRow[], isAdmin: boolean, al
722722
document.querySelectorAll('#period-tabs .tab').forEach(function(btn) {
723723
btn.addEventListener('click', function() {
724724
var target = btn.getAttribute('data-period');
725-
location.hash = target;
725+
history.replaceState(null, '', '#' + target);
726726
activatePeriod(target);
727727
});
728728
});

0 commit comments

Comments
 (0)