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:
parent
ad7a0572cd
commit
7aec2e339f
1 changed files with 6 additions and 5 deletions
|
|
@ -16,10 +16,11 @@
|
||||||
// deterministic pick from the same seven base16 chromatic slots the nav
|
// deterministic pick from the same seven base16 chromatic slots the nav
|
||||||
// accent cycles through (`AVATAR_ACCENTS`).
|
// accent cycles through (`AVATAR_ACCENTS`).
|
||||||
//
|
//
|
||||||
// "Authelia settings" / "log out" reuse the *same* URL `LinksMenu`
|
// "Authelia settings" / "log out" both build off the *same* base URL
|
||||||
// already shows for "Authelia" (`GET /api/links`), not a second source
|
// `LinksMenu` already shows for "Authelia" (`GET /api/links`), not a
|
||||||
// of the domain; `/logout` is appended client-side — authelia's own
|
// second source of the domain — `/settings` and `/logout` are appended
|
||||||
// documented sign-out route.
|
// 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 { useEffect, useRef, useState } from 'preact/hooks';
|
||||||
import './UserMenu.css';
|
import './UserMenu.css';
|
||||||
|
|
||||||
|
|
@ -140,7 +141,7 @@ export function UserMenu() {
|
||||||
<>
|
<>
|
||||||
<a
|
<a
|
||||||
class="user-menu-item"
|
class="user-menu-item"
|
||||||
href={base}
|
href={`${base}/settings`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
role="menuitem"
|
role="menuitem"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue