fix: strip existing sso param from clientUrl, add aria roles to dropdowns, add x-pathname fallback, move .dropdown-menu into @layer components

This commit is contained in:
openhands committed 2026-07-03 16:17:42 +02:00
1 parent 7e616ca6b3
commit 187af2e147
4 files changed
+37 -37

No files matched your search

+3 -2
View File
@@ -81,8 +81,9 @@ export default function ClientPage() {
const getClientSrc = useCallback(() => {
if (!ticket) return "";
const sep = clientUrl.includes("?") ? "&" : "?";
return `${clientUrl}${sep}sso=${encodeURIComponent(ticket)}`;
const base = clientUrl.replace(/(\?|&)sso=[^&]*/, "");
const sep = base.includes("?") ? "&" : "?";
return `${base}${sep}sso=${encodeURIComponent(ticket)}`;
}, [clientUrl, ticket]);
if (loading) {