2f2fcc2f51
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.
8 lines
345 B
TypeScript
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';
|
|
};
|