From 37b38e0eb15a79bbda3cd0a1b502669b32e773dc Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 15 Oct 2026 14:33:03 +0200 Subject: fix(auth): the sign-up notice links the privacy statement, with a space MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The link under the Register button was glued to the sentence before it: htm drops whitespace that holds a line break, so "deleted.Legal information". It also pointed at the hub's /legal/ index. Where an account is created is where GDPR art. 13 owes the person the information about their data, so it now links the privacy statement itself — /legal/confidentialite.fr.txt in French, /legal/privacy-statement.en.txt in every other language — on the hub that served the page, like every legal link. The sidebar's "Legal information" is unchanged. Checked in Chrome and Firefox (headless), in English and French. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/src/meshbay_hub/static/platform.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'packages/meshbay-hub/src/meshbay_hub/static/platform.js') diff --git a/packages/meshbay-hub/src/meshbay_hub/static/platform.js b/packages/meshbay-hub/src/meshbay_hub/static/platform.js index fa2065d..cf2acf3 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/platform.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/platform.js @@ -65,6 +65,17 @@ export function legalUrl() { return `${hubBase().replace(/\/$/, '')}/legal/`; } +/** + * The hub's privacy statement, linked where an account is created: the + * information GDPR art. 13 owes a person when their data is collected. Same + * hub as `legalUrl()`, for the same reason. French has its own text; every + * other language gets the English one. + */ +export function privacyUrl(locale) { + const doc = locale === 'fr' ? 'confidentialite.fr.txt' : 'privacy-statement.en.txt'; + return `${legalUrl()}${doc}`; +} + /** Native-only capabilities. A browser renders none of what these gate. */ export const capabilities = { // Install, configure and drive a node running on this machine. -- cgit v1.2.3