From bf6008f85763c4814bd6a4ecf4581a1bd7956131 Mon Sep 17 00:00:00 2001 From: Moepchi Date: Thu, 22 Oct 2026 19:45:07 +0000 Subject: [PATCH] Open the About dialog from a #about link Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- web/src/App.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index 18eaa04..e71588f 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -7079,7 +7079,8 @@ function AppInner() { // Terms of use, own-hosted instance only (see IS_OWN_HOSTED_INSTANCE): shown // mandatorily on first visit, reopenable any time from the menu afterwards. const [tosOpen, setTosOpen] = useState(false); - const [aboutOpen, setAboutOpen] = useState(false); + // client.webspeak3.de/#about opens the About dialog directly (shareable link). + const [aboutOpen, setAboutOpen] = useState(() => window.location.hash === "#about"); const [tosMandatory, setTosMandatory] = useState(false); useEffect(() => { if (IS_OWN_HOSTED_INSTANCE && !hasAcceptedToS()) { @@ -11303,7 +11304,14 @@ function AppInner() { {restartNotice && setRestartNotice(null)} />} - {aboutOpen && setAboutOpen(false)} />} + {aboutOpen && ( + { + setAboutOpen(false); + if (window.location.hash === "#about") window.history.replaceState(null, "", window.location.pathname + window.location.search); + }} + /> + )} {tosOpen && (