Rechtstexte als App-Seiten statt statischer HTML-Seiten
Impressum, Datenschutz und Beitragsordnung liegen als HTML-Fragmente in frontend/src/docs und werden unter /impressum, /datenschutz und /beitragsordnung in der App mit der einheitlichen Navigation gezeigt. Die alten Adressen /static/docs/*.html leiten per 301 dorthin um. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
15b0bfc69c
commit
f0dbb67054
@@ -10,6 +10,7 @@ import { UserPage } from "./pages/UserPage";
|
||||
import { StatsPage } from "./pages/StatsPage";
|
||||
import { ResetPage } from "./pages/ResetPage";
|
||||
import { MePage, Placeholder } from "./pages/Placeholder";
|
||||
import { DocPage } from "./pages/DocPage";
|
||||
import "./app.css";
|
||||
|
||||
const queryClient = new QueryClient({
|
||||
@@ -39,6 +40,9 @@ const router = createBrowserRouter([
|
||||
{ path: "/notifications", element: <Placeholder title="Benachrichtigungen" /> },
|
||||
{ path: "/chats", element: <Placeholder title="Chats" /> },
|
||||
{ path: "/settings", element: <Placeholder title="Einstellungen" /> },
|
||||
{ path: "/impressum", element: <DocPage name="impressum" /> },
|
||||
{ path: "/datenschutz", element: <DocPage name="datenschutz" /> },
|
||||
{ path: "/beitragsordnung", element: <DocPage name="beitragsordnung" /> },
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user