mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Getting organization by slug, adding this in url. And working on permissions.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import {PageParams} from "@/types/next";
|
||||
import {redirect} from "next/navigation";
|
||||
import {getCurrentOrganizationSlug} from "@/features/dashboard/organization-cookie";
|
||||
|
||||
export default async function RoutePage(props: PageParams<{}>) {
|
||||
redirect("/dashboard/projects")
|
||||
|
||||
const currentOrganizationSlug = await getCurrentOrganizationSlug()
|
||||
redirect(`/dashboard/${currentOrganizationSlug}/projects`)
|
||||
}
|
||||
Reference in New Issue
Block a user