Move admin panel to /root and decouple it from locale routing

This commit is contained in:
MOH
2026-03-06 15:15:53 +01:00
parent 96a0d7f8bb
commit d070c32a85
6 changed files with 332 additions and 327 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export function Footer() {
item.key === "root" ? (
<a
key={item.key}
href={`/${locale}${item.path}`}
href="/root"
className="text-zinc-600 transition hover:text-zinc-900 dark:text-zinc-300 dark:hover:text-zinc-100"
>
{tNav(item.key)}
+2 -2
View File
@@ -52,7 +52,7 @@ export function Navbar() {
item.key === "root" ? (
<a
key={item.key}
href={`/${locale}${item.path}`}
href="/root"
className="text-sm text-zinc-700 transition hover:text-zinc-900 dark:text-zinc-300 dark:hover:text-zinc-100"
>
{t(item.key)}
@@ -97,7 +97,7 @@ export function Navbar() {
item.key === "root" ? (
<a
key={item.key}
href={`/${locale}${item.path}`}
href="/root"
className="text-sm text-zinc-700 dark:text-zinc-300"
onClick={() => setIsOpen(false)}
>