Include website origin in tracker policy title

An organization can run several websites, each with its own banner and
generated policy. Add the banner origin to the document title and the
rendered heading so the policies are distinguishable in document lists
and the trust center.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-06-01 18:43:57 +02:00
parent 4d64b1f937
commit 346ca94d38
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
# Cookie and Tracking Technologies Policy
# Cookie and Tracking Technologies Policy for {{ .WebsiteOrigin }}
_Last updated: {{ formatDate .GeneratedAt }}_

View File

@@ -155,7 +155,7 @@ func (s *GeneratedDocumentService) PublishTrackerPolicy(
ID: documentVersionID,
OrganizationID: banner.OrganizationID,
DocumentID: document.ID,
Title: "Cookie and Tracking Technologies Policy",
Title: fmt.Sprintf("Cookie and Tracking Technologies Policy — %s", banner.Origin),
Content: prosemirrorJSON,
Classification: coredata.DocumentClassificationPublic,
DocumentType: coredata.DocumentTypePolicy,