Files
homepage/src/params/calendarRite.ts
T
Alexander 2f2fcc2f51 feat(faith): rename rite URL slugs to vetus/novus
Replace /1962 and /1969 with /vetus and /novus — matches how Catholics
actually refer to the missals (Vetus Ordo / Novus Ordo), reads the same
across de/en/la, and sidesteps the value-laden old-vs-new framing.
Rite pill labels flip to "Vetus" / "Novus"; the year stays visible in
the subtitle. Legacy year-slug URLs 307-redirect to keep bookmarks alive.
2026-04-21 16:32:48 +02:00

8 lines
345 B
TypeScript

import type { ParamMatcher } from '@sveltejs/kit';
// Accepts the new Latin slugs (`vetus` / `novus`) plus the legacy year slugs
// so old bookmarks land on a load handler that 307s them to the new shape.
export const match: ParamMatcher = (param) => {
return param === 'vetus' || param === 'novus' || param === '1962' || param === '1969';
};