From 467af8b6ef5a853f6f424f6512658cae391e125f Mon Sep 17 00:00:00 2001 From: Johannes <72809645+jobenjada@users.noreply.github.com> Date: Wed, 20 May 2026 13:18:12 +0200 Subject: [PATCH] fix: correct settings sidebar back navigation behavior (#8052) Co-authored-by: Cursor Co-authored-by: Johannes (cherry picked from commit 13c9677eddeb23f523871ae45ff4db364e58ac28) --- .../[workspaceId]/components/MainNavigation.tsx | 4 ++-- apps/web/modules/ui/components/go-back-button/index.tsx | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/web/app/(app)/workspaces/[workspaceId]/components/MainNavigation.tsx b/apps/web/app/(app)/workspaces/[workspaceId]/components/MainNavigation.tsx index 487ed4bfb5..5921f202e4 100644 --- a/apps/web/app/(app)/workspaces/[workspaceId]/components/MainNavigation.tsx +++ b/apps/web/app/(app)/workspaces/[workspaceId]/components/MainNavigation.tsx @@ -194,7 +194,7 @@ export const MainNavigation = ({ const settingsNavigationItem = useMemo( () => ({ name: t("common.settings"), - href: `/workspaces/${workspace.id}/settings`, + href: `/workspaces/${workspace.id}/settings/workspace/general`, icon: SettingsIcon, isActive: isSettingsMode, disabled: isMembershipPending || isBilling, @@ -467,7 +467,7 @@ export const MainNavigation = ({ {isSettingsMode ? (
- +
{/* Settings sidebar content */} diff --git a/apps/web/modules/ui/components/go-back-button/index.tsx b/apps/web/modules/ui/components/go-back-button/index.tsx index 09978277c2..a23db6ea3f 100644 --- a/apps/web/modules/ui/components/go-back-button/index.tsx +++ b/apps/web/modules/ui/components/go-back-button/index.tsx @@ -5,9 +5,14 @@ import { useRouter } from "next/navigation"; import { useTranslation } from "react-i18next"; import { Button } from "@/modules/ui/components/button"; -export const GoBackButton = ({ url }: { url?: string }) => { +interface GoBackButtonProps { + url?: string; +} + +export const GoBackButton = ({ url }: Readonly) => { const router = useRouter(); const { t } = useTranslation(); + return (