mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
- The Coach verbosity picker is disabled while the concise tone forces brief, with a hint saying so, instead of a live control that silently does nothing. - A fresh document upload flashes its new row like the duplicate path always did; the settle decision is a pure exported helper with a test. - /about gains its two inbound links: the /privacy footer and a Settings→About credits row (the GeoLite2 EULA wants the attribution reachable from the running app). - The eight settings slugs shadowed by permanent redirects (the seven layout children + sharing) leave the slug registry: no more prerendering unreachable pages, no dead component wirings, and the SectionPlaceholder fallback that could never render is gone. The redirects, section components, and layout-hub subpages are unchanged.
19 lines
757 B
TypeScript
19 lines
757 B
TypeScript
import { permanentRedirect } from "next/navigation";
|
|
|
|
/**
|
|
* `/settings` is a thin permanent redirect to `/settings/account`.
|
|
*
|
|
* Pre-v1.4 the entire settings UI lived in this single 3000+ LOC file. As part
|
|
* of the v1.4 settings split (PR series A2), each concern moved to its own
|
|
* route under `/settings/[section]/page.tsx`; the extraction finished long
|
|
* ago and the historic monolith is gone.
|
|
*
|
|
* 308 (`permanentRedirect`) keeps the request method intact and is the right
|
|
* answer for a permanent address change — bookmarks, deep-links, and any
|
|
* external systems that POST to `/settings` will follow the redirect with
|
|
* their original method.
|
|
*/
|
|
export default function SettingsRoot(): never {
|
|
permanentRedirect("/settings/account");
|
|
}
|