Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: infinite redirect in navigation guard (#17213)

boojack4e00db51e420
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 3ee30959b9..747d4e761a 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -23,7 +23,6 @@ import authRoutes, {
AUTH_OIDC_CALLBACK_MODULE,
AUTH_PASSWORD_RESET_MODULE,
AUTH_SIGNIN_MODULE,
- AUTH_SIGNUP_MODULE,
} from "./auth";
import dashboardRoutes from "./dashboard";
import {
@@ -174,23 +173,6 @@ router.beforeEach((to, from, next) => {
return;
}
- // === POST-AUTH LOGIC ===
-
- // Handle redirect after successful authentication
- if (
- (from.name === AUTH_SIGNIN_MODULE || from.name === AUTH_SIGNUP_MODULE) &&
- typeof from.query.redirect === "string"
- ) {
- const redirectUrl = from.query.redirect;
- // Validate redirect URL to prevent external redirects and XSS
- if (redirectUrl.startsWith("/") && !redirectUrl.startsWith("//")) {
- next(redirectUrl);
- } else {
- next("/");
- }
- return;
- }
-
// Enforce 2FA setup if required
const currentUserV1 = useCurrentUserV1();
if (