Skip to content

Commit

Permalink
fix login hash detection
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkelemen committed Sep 18, 2024
1 parent f3ec136 commit 4548c10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const observer = new MutationObserver(() => {
});
observer.observe(document, { attributes: false, childList: true, characterData: false, subtree: true });

// forward user from login page to dashboard
if (window.location.hash.includes("login")) {
// on page load forward user from login page to dashboard
if (window.location.hash === '#/login') {
window.location.hash = "";
}

0 comments on commit 4548c10

Please sign in to comment.