diff --git a/src/components/hubl-auto-login.js b/src/components/hubl-auto-login.js index e46cc3f..71b5a49 100644 --- a/src/components/hubl-auto-login.js +++ b/src/components/hubl-auto-login.js @@ -12,7 +12,7 @@ export const HublAutoLogin = { window.dispatchEvent( new CustomEvent('requestNavigation', { detail: { - route: window.hubl.getRoute("dashboard", true) + route: window.hubl.getRoute((window.hubl.defaultRoute || "dashboard"), true) } }), ); diff --git a/src/scripts/navigate-event.js b/src/scripts/navigate-event.js index 9fb041a..0ac62eb 100644 --- a/src/scripts/navigate-event.js +++ b/src/scripts/navigate-event.js @@ -88,7 +88,7 @@ document.addEventListener("DOMContentLoaded", function () { window.dispatchEvent( new CustomEvent('requestNavigation', { detail: { - route: window.hubl.getRoute("dashboard", true) + route: window.hubl.getRoute((window.hubl.defaultRoute || "dashboard"), true) } }), ); @@ -131,7 +131,7 @@ document.addEventListener("DOMContentLoaded", function () { window.dispatchEvent( new CustomEvent('requestNavigation', { detail: { - route: window.hubl.getRoute("dashboard", true) + route: window.hubl.getRoute((window.hubl.defaultRoute || "dashboard"), true) } }), );