g1t/apps/web/app/routes/settings/index.tsx

16 lines429 bytesCodeBlame
1import { redirect } from "react-router";
2
3import { FIRST_SETTINGS_PAGE } from "../../lib/account-settings";
4
5/**
6 * `/settings` is the first of its pages. A browser keeps the `#anchor` of
7 * an old link across this redirect, and the settings layout sends it on to
8 * the page that anchor now has.
9 */
10export function loader() {
11 throw redirect(FIRST_SETTINGS_PAGE);
12}
13
14export default function SettingsIndex() {
15 return null;
16}