Add dedicated local admin domain routing
This commit is contained in:
@@ -8,6 +8,7 @@ import { AppCard } from "@/components/ui/app-card";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { CardContent } from "@/components/ui/card";
|
||||
import { getAdminAppPath } from "@/lib/admin-routing";
|
||||
import { getLocalizedPath } from "@/lib/locale";
|
||||
import { getLocalizedValue, type PortfolioCategoryView, type PortfolioProjectView } from "@/lib/portfolio";
|
||||
|
||||
@@ -46,13 +47,13 @@ export function PortfolioProjectsOverview({
|
||||
|
||||
<div className="flex flex-wrap gap-2">
|
||||
<Button asChild>
|
||||
<Link href="/portfolio/projects/new">
|
||||
<Link href={getAdminAppPath("/portfolio/projects/new")}>
|
||||
<Plus className="h-4 w-4" />
|
||||
{copy.newProject}
|
||||
</Link>
|
||||
</Button>
|
||||
<Button asChild variant="outline">
|
||||
<Link href="/portfolio/categories">
|
||||
<Link href={getAdminAppPath("/portfolio/categories")}>
|
||||
<Tags className="h-4 w-4" />
|
||||
{copy.newCategory}
|
||||
</Link>
|
||||
@@ -62,7 +63,7 @@ export function PortfolioProjectsOverview({
|
||||
|
||||
<div className="flex flex-wrap gap-2">
|
||||
<Button asChild variant={selectedCategory === "" ? "default" : "outline"}>
|
||||
<Link href="/portfolio">{copy.all}</Link>
|
||||
<Link href={getAdminAppPath("/portfolio")}>{copy.all}</Link>
|
||||
</Button>
|
||||
{categories.map((category) => (
|
||||
<Button
|
||||
@@ -70,7 +71,7 @@ export function PortfolioProjectsOverview({
|
||||
asChild
|
||||
variant={selectedCategory === category.id ? "default" : "outline"}
|
||||
>
|
||||
<Link href={`/portfolio?category=${category.id}`}>
|
||||
<Link href={`${getAdminAppPath("/portfolio")}?category=${category.id}`}>
|
||||
{category.name.de || category.name.en || category.name.ar}
|
||||
</Link>
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user