diff --git a/pkg/service/handlers/web/js/script.js b/pkg/service/handlers/web/js/script.js index 83a2205..294d771 100644 --- a/pkg/service/handlers/web/js/script.js +++ b/pkg/service/handlers/web/js/script.js @@ -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