Skip to content

Commit e775b49

Browse files
authored
fix: redirect to Fief profile page (#931)
1 parent 987997c commit e775b49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webapp/src/components/navbar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import CreateOrganizationModal from "./createOrganizationModal";
2626
import { getOrganizations } from "@/server-functions/organizations";
2727
import { Button } from "./ui/button";
2828

29+
const USER_PROFILE_URL = process.env.NEXT_PUBLIC_FIEF_BASE_URL; // Redirect to Fief profile to handle profile updates there
2930
export default function NavBar({
3031
orgs,
3132
setSheetOpened,
@@ -255,7 +256,7 @@ export default function NavBar({
255256
onClick={() => {
256257
setSelected("profile");
257258
setSheetOpened?.(false);
258-
router.push(`/profile`);
259+
window.location.href = USER_PROFILE_URL!; // Redirect to Fief profile to handle profile updates there
259260
}}
260261
paddingY={1.5}
261262
icon={<UserIcon className={iconStyles} />}

0 commit comments

Comments
 (0)