diff --git a/web/src/app/(dashboard)/backfill/page.tsx b/web/src/app/dashboard/backfill/page.tsx
similarity index 100%
rename from web/src/app/(dashboard)/backfill/page.tsx
rename to web/src/app/dashboard/backfill/page.tsx
diff --git a/web/src/app/(dashboard)/events/page.tsx b/web/src/app/dashboard/events/page.tsx
similarity index 100%
rename from web/src/app/(dashboard)/events/page.tsx
rename to web/src/app/dashboard/events/page.tsx
diff --git a/web/src/app/(dashboard)/layout.tsx b/web/src/app/dashboard/layout.tsx
similarity index 100%
rename from web/src/app/(dashboard)/layout.tsx
rename to web/src/app/dashboard/layout.tsx
diff --git a/web/src/app/(dashboard)/lexicons/[id]/lexicon-detail.tsx b/web/src/app/dashboard/lexicons/[id]/lexicon-detail.tsx
similarity index 97%
rename from web/src/app/(dashboard)/lexicons/[id]/lexicon-detail.tsx
rename to web/src/app/dashboard/lexicons/[id]/lexicon-detail.tsx
index 5ce49e0..7e8a4f3 100644
--- a/web/src/app/(dashboard)/lexicons/[id]/lexicon-detail.tsx
+++ b/web/src/app/dashboard/lexicons/[id]/lexicon-detail.tsx
@@ -122,7 +122,7 @@ export default function LexiconDetailPage() {
} else {
await deleteLexicon(getToken, lexicon.id);
}
- router.push("/lexicons");
+ router.push("/dashboard/lexicons");
} catch (e: unknown) {
setError(e instanceof Error ? e.message : String(e));
setDeleting(false);
@@ -132,7 +132,7 @@ export default function LexiconDetailPage() {
if (error && !lexicon) {
return (
<>
-
{error}
Loading...
{error}
} diff --git a/web/src/app/(dashboard)/lexicons/[id]/page.tsx b/web/src/app/dashboard/lexicons/[id]/page.tsx similarity index 100% rename from web/src/app/(dashboard)/lexicons/[id]/page.tsx rename to web/src/app/dashboard/lexicons/[id]/page.tsx diff --git a/web/src/app/(dashboard)/lexicons/new/page.tsx b/web/src/app/dashboard/lexicons/new/page.tsx similarity index 98% rename from web/src/app/(dashboard)/lexicons/new/page.tsx rename to web/src/app/dashboard/lexicons/new/page.tsx index c7f77a3..215286d 100644 --- a/web/src/app/(dashboard)/lexicons/new/page.tsx +++ b/web/src/app/dashboard/lexicons/new/page.tsx @@ -30,7 +30,7 @@ export default function AddLexiconPage() { // Redirect if the user cannot create lexicons useEffect(() => { if (!hasPermission("lexicons:create")) { - router.replace("/lexicons"); + router.replace("/dashboard/lexicons"); } }, [hasPermission, router]); @@ -137,7 +137,7 @@ export default function AddLexiconPage() { backfill: localMainType === "record" && backfill, script: showScript && script ? script : undefined, }); - router.push("/lexicons"); + router.push("/dashboard/lexicons"); } catch (e: unknown) { setError(e instanceof Error ? e.message : String(e)); setSubmitting(false); @@ -154,7 +154,7 @@ export default function AddLexiconPage() { ? networkTargetCollection || undefined : undefined, }); - router.push("/lexicons"); + router.push("/dashboard/lexicons"); } catch (e: unknown) { setError(e instanceof Error ? e.message : String(e)); setSubmitting(false); @@ -163,7 +163,7 @@ export default function AddLexiconPage() { return ( <> -