swarm-ui: authelia settings link should go to /settings, not the domain root

mara: "should be https://auth.constellation.darkest.space/settings in
profile pic menu" -- the UserMenu link was pointing at the plain
authelia domain root, which lands on the portal rather than the
account settings page. Appends /settings client-side, same base-URL
source as before (GET /api/links Authelia entry).
This commit is contained in:
iris 2026-08-24 12:31:07 +02:00
commit 7aec2e339f

View file

@ -16,10 +16,11 @@
// deterministic pick from the same seven base16 chromatic slots the nav
// accent cycles through (`AVATAR_ACCENTS`).
//
// "Authelia settings" / "log out" reuse the *same* URL `LinksMenu`
// already shows for "Authelia" (`GET /api/links`), not a second source
// of the domain; `/logout` is appended client-side — authelia's own
// documented sign-out route.
// "Authelia settings" / "log out" both build off the *same* base URL
// `LinksMenu` already shows for "Authelia" (`GET /api/links`), not a
// second source of the domain — `/settings` and `/logout` are appended
// client-side, both real authelia routes (mara confirmed `/settings` is
// the real path after the plain domain-root link landed short of it).
import { useEffect, useRef, useState } from 'preact/hooks';
import './UserMenu.css';
@ -140,7 +141,7 @@ export function UserMenu() {
<>
<a
class="user-menu-item"
href={base}
href={`${base}/settings`}
target="_blank"
rel="noreferrer"
role="menuitem"