2.4 KiB
Public Site Specification
Purpose
A mozdIT Bt. publikus, magyar és angol nyelvű weboldalának útvonalait, tartalmát és megjelenítési viselkedését írja le.
Requirements
Requirement: Locale-prefixed routes
The public site SHALL serve the Hungarian and English locales under /hu and /en
URL prefixes respectively. The bare root URL SHALL redirect to the default Hungarian
home route /hu.
Scenario: Open the home page in a supported locale
- WHEN a visitor opens
/huor/en - THEN the site SHALL render the home page in the requested locale
Scenario: Open a localized content page
- WHEN a visitor opens a supported page using its locale-specific slug, such as
/hu/rolunkor/en/about - THEN the site SHALL resolve and render that page in the URL locale
Requirement: CMS-backed public content
The public site SHALL read editable page content from the Payload CMS through the server-side content adapter. It SHALL render the home, about, services, contact, privacy, and terms pages, and SHALL include partner entries with usable logos on the home page.
Scenario: An administrator publishes page content
- WHEN a published page or global is read by a public request
- THEN the site SHALL render the current published Payload content without requiring an application rebuild or redeployment
Scenario: A partner has no usable logo
- WHEN a partner has no uploaded logo URL
- THEN the public home page SHALL omit that partner from the rendered partner list
Requirement: Unknown public routes return not found
The public site SHALL return its not-found page for unsupported locale prefixes and unknown or unsupported page slugs.
Scenario: Open a route with an unsupported locale or slug
- WHEN a visitor requests a locale outside
huanden, or a slug not mapped to a supported page in that locale - THEN the site SHALL render the not-found response
Requirement: Locale-specific page metadata
The public site SHALL generate page titles, descriptions, and Open Graph locale metadata for the requested locale where page metadata is available.
Scenario: Request metadata for a localized page
- WHEN metadata is generated for a supported page and locale
- THEN its title and description SHALL use that locale's page content or configured localized fallback text