fix(settings): English addresses for the health record and checkups pages

Two Settings pages had German words in their address in every
language: /settings/gesundheitsakte and /settings/layout/vorsorge.
They are /settings/health-record and /settings/layout/checkups now,
and the old addresses (and the older /settings/sharing and
/settings/vorsorge) redirect permanently, so bookmarks and links in
old reports keep working; the report range a since-last-visit link
carries in its query passes through. The in-app links, the tour, the
command palette, the anchor forwards and the e2e specs use the new
addresses, and the two message groups follow the new slugs.
This commit is contained in:
Marc-André Bombeck committed 2026-11-11 22:47:40 +01:00
1 parent 3b79c81379
commit f17819f1c2
34 files changed
+110 -78

No files matched your search

@@ -215,7 +215,7 @@ describe("the customise shortcut is withheld inside somebody else's record", ()
export function Page() {
const { inSharedRecord } = useRecordCapabilities();
const wrench = !inSharedRecord ? (
<Link href="/settings/layout/vorsorge">Customise</Link>
<Link href="/settings/layout/checkups">Customise</Link>
) : null;
return wrench;
}
@@ -50,6 +50,7 @@ const HISTORICAL_SETTINGS_PATHS: readonly string[] = [
"/settings/api",
"/settings/mcp",
"/settings/gesundheitsakte",
"/settings/health-record",
"/settings/sharing",
"/settings/export",
"/settings/advanced",
@@ -72,6 +73,7 @@ const HISTORICAL_SETTINGS_PATHS: readonly string[] = [
"/settings/layout/illness",
"/settings/layout/documents",
"/settings/layout/vorsorge",
"/settings/layout/checkups",
];
interface Redirect {
@@ -151,6 +153,22 @@ describe("historical Settings addresses", () => {
expect(unlisted).toEqual([]);
});
it("sends the old German addresses to their English ones", async () => {
const redirects = await settingsRedirects();
expect(resolve("/settings/gesundheitsakte", redirects)).toBe(
"/settings/health-record",
);
expect(resolve("/settings/sharing", redirects)).toBe(
"/settings/health-record",
);
expect(resolve("/settings/layout/vorsorge", redirects)).toBe(
"/settings/layout/checkups",
);
expect(resolve("/settings/vorsorge", redirects)).toBe(
"/settings/layout/checkups",
);
});
it("keeps the v1.44 moves addressable", async () => {
const redirects = await settingsRedirects();
expect(resolve("/settings/layout/mood", redirects)).toBe(