feat(wiki): serve the legal pages at /terms-of-service and /privacy-policy

Discord, and most platforms, ask for a terms URL and a privacy URL in a
form field; pasting a `/wiki/...` address there reads like an afterthought.
Both pages now answer at the root, while everything else stays under
`/wiki/`.

The API states each page's address instead of leaving the front to rebuild
it, so there is one place that decides. Existing pages are renamed rather
than recreated, keeping whatever has already been written in them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
nocodeandClaude Opus 5 committed 2026-09-23 23:25:59 +02:00
1 parent e1b9a5cc77
commit 3d0e21d7cb
7 files changed
+83 -26

No files matched your search

@@ -0,0 +1,9 @@
-- The legal pages move to the addresses platforms expect (M17)
--
-- Discord, and most app stores, ask for a terms URL and a privacy URL. Serving
-- them under `/wiki/` works but reads badly in a form field, so they move to
-- the root. Renaming rather than recreating keeps whatever the organization
-- has already written in them.
UPDATE wiki_pages SET slug = 'terms-of-service' WHERE slug = 'conditions-utilisation';
UPDATE wiki_pages SET slug = 'privacy-policy' WHERE slug = 'politique-confidentialite';