diff --git a/src/components/NavigationContent/NavigationContent.tsx b/src/components/NavigationContent/NavigationContent.tsx
index d020e51..6e0ee6e 100644
--- a/src/components/NavigationContent/NavigationContent.tsx
+++ b/src/components/NavigationContent/NavigationContent.tsx
@@ -363,7 +363,7 @@ const NavigationContent: React.FC = () => {
id: "nav.settings.shopAndTruck",
icon: ,
labelKey: "nav.settings.shopAndTruck",
- path: "/settings/shop",
+ path: "/settings/shop/board",
},
{
id: "nav.settings.deliveryOrderFloor",
@@ -495,6 +495,13 @@ const NavigationContent: React.FC = () => {
if (!pathname.startsWith(p + "/")) return false;
// `/doworkbench` must not claim `/doworkbenchsearch` (prefix without trailing slash)
if (p === "/doworkbench" && pathname.startsWith("/doworkbenchsearch")) return false;
+ // Shop sub-routes (detail, truckdetail, legacy tab page) share one nav entry → board
+ if (
+ p === "/settings/shop/board" &&
+ (pathname === "/settings/shop" || pathname.startsWith("/settings/shop/"))
+ ) {
+ return true;
+ }
return true;
});
matches.sort((a, b) => b.length - a.length);
diff --git a/src/components/Shop/ShopDetail.tsx b/src/components/Shop/ShopDetail.tsx
index 135902d..f83f3ab 100644
--- a/src/components/Shop/ShopDetail.tsx
+++ b/src/components/Shop/ShopDetail.tsx
@@ -325,7 +325,7 @@ const ShopDetail: React.FC = () => {
{error}
-
+
);
}
@@ -336,7 +336,7 @@ const ShopDetail: React.FC = () => {
{t("Shop not found")}
-
+
);
}
@@ -347,7 +347,7 @@ const ShopDetail: React.FC = () => {
{t("Shop Information")}
-
+
diff --git a/src/components/Shop/TruckLaneDetail.tsx b/src/components/Shop/TruckLaneDetail.tsx
index 9f617eb..782a9ef 100644
--- a/src/components/Shop/TruckLaneDetail.tsx
+++ b/src/components/Shop/TruckLaneDetail.tsx
@@ -493,7 +493,7 @@ const TruckLaneDetail: React.FC = () => {
};
const handleBack = () => {
- router.push("/settings/shop?tab=1");
+ router.push("/settings/shop/board");
};
const handleOpenAddShopDialog = () => {