diff --git a/src/meshweb/static/admin/map.js b/src/meshweb/static/admin/map.js index e90047db..a87d3dce 100644 --- a/src/meshweb/static/admin/map.js +++ b/src/meshweb/static/admin/map.js @@ -163,7 +163,13 @@ async function updateAdminContent(newUrl, options, updateHistory = true) { return; } - if (updateHistory) window.history.pushState(null, '', newUrl); + if (updateHistory) { + if (response.redirected) { + window.history.pushState(null, '', response.url) + } else { + window.history.pushState(null, '', newUrl); + } + } const current_map = document.getElementById("map");