From a7d40ee7da8c4b09e744eea65189fdce2ecb7ccf Mon Sep 17 00:00:00 2001 From: servius Date: Mon, 27 Jul 2026 14:59:22 +0530 Subject: [PATCH] fix: mark server-route links external so leptos_router does not hijack them The SSO login (/auth/oidc/login) and logout (/logout) anchors are server routes with no client-side Route, so leptos_router intercepted the click, navigated client-side, and rendered the SPA "Page not found" fallback instead of reaching the server. Adding rel="external" opts these links out of the router's anchor interception so the browser navigates for real. --- web-ui/src/components/library.rs | 2 +- web-ui/src/components/login.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web-ui/src/components/library.rs b/web-ui/src/components/library.rs index b03dee6..4559894 100644 --- a/web-ui/src/components/library.rs +++ b/web-ui/src/components/library.rs @@ -135,7 +135,7 @@ pub fn Library() -> impl IntoView { }} "Settings" - "Log out" + "Log out" diff --git a/web-ui/src/components/login.rs b/web-ui/src/components/login.rs index b25a09b..8b9f41b 100644 --- a/web-ui/src/components/login.rs +++ b/web-ui/src/components/login.rs @@ -58,7 +58,8 @@ pub fn Login() -> impl IntoView { let local = cfg.local_login; view! { {sso.then(|| view! { - + "Continue with SSO" })} -- 2.51.2