Participant pages: read the tenant from inject:tenant, like the admin area #6
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#7 One source for the tenant on every page, and 404 for unknown tenants
ijug-ev/registration
Reference
ijug-ev/registration#6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
In the participant templates
tenantmeans different things depending on the page:registration.htmlandthanks.htmlget the bare id string.logoheader.html,meeting/layout.html,meeting/notAvailable.html) get theTenantentity.Plain data keys are not checked at build time, so a wrong expression still renders something that looks fine. For example, a wrong tenant prefix produces a dead unsubscribe link, and passing the entity where the id is expected prints
Tenant(id=…)into the page. The admin area lost this failure mode when it moved to theCurrentTenantbean.Change
thanks.htmland onregistration.html, plus the JUG name, privacy and imprint links in the meeting logo header, plus the homepage link on the "not available" page. None of these are covered today.CurrentTenant: addgetWebsite(),getPrivacy()andgetImprint(), with a null guard for paths that have no tenant segment.{tenant…}to{inject:tenant…}..data("tenant", …)calls fromRegistrationResource(3) andMeetingResource(2).TenantStyleandCurrentTenantjavadoc andCLAUDE.md.Out of scope
public.html. That is a product decision.