Skip to content

Commit

Permalink
Revert "Fix: admin UI redirects aren't followed correctly"
Browse files Browse the repository at this point in the history
This reverts commit 41d738b.
  • Loading branch information
Andrew-Dickinson committed Oct 8, 2024
1 parent 942d8e7 commit 712ab42
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/meshweb/static/admin/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,7 @@ async function updateAdminContent(newUrl, options, updateHistory = true) {
return;
}

if (updateHistory) {
if (response.redirected) {
window.history.pushState(null, '', response.url)
} else {
window.history.pushState(null, '', newUrl);
}
}
if (updateHistory) window.history.pushState(null, '', newUrl);

const current_map = document.getElementById("map");

Expand Down

0 comments on commit 712ab42

Please sign in to comment.