fix(web): guard pushState in showSummary to break popstate loop

skip history.pushState when the hash already matches, so popstate -> selectMigrationDevice -> showSummary no longer pushes a duplicate entry that traps browser-Back in an oscillation between identical `#tab-migration?<id>` entries.
This commit is contained in:
Tobias Gesellchen
2026-05-18 22:21:28 +02:00
parent fbbc0de55c
commit 48e8ff8352
+4 -1
View File
@@ -1743,7 +1743,10 @@ async function showSummary(deviceId) {
document.getElementById("migration-summary").style.display = "none";
return;
}
history.pushState(null, '', '#tab-migration?' + deviceId);
const newHash = '#tab-migration?' + deviceId;
if (window.location.hash !== newHash) {
history.pushState(null, '', newHash);
}
const targetUrl = document.getElementById("target-domain").value;
// Per-field URL overrides (Plan card). The summary endpoint uses