AdminHrefTarget
AdminHrefTarget = {
type:"dashboard"; } | {type:"collections"; } | {slug:string;type:"collection"; } | {slug:string;type:"global"; } | {type:"globals"; } | {id:string;slug:string;type:"document"; } | {slug:string;type:"create"; }
Defined in: packages/react/src/admin/adminHref.ts:15
Target an admin panel URL points at — the one discriminated union every
hand-built ${basePath}/... string in this package is replaced with.
"create" is not a separate route: creating a document opens a modal on
the collection’s own list view (CollectionListView), so it resolves to
the SAME path as "collection" plus the create-modal’s nuqs query
param. Media’s own “Upload” action uses a DIFFERENT modal
(MODALS.uploadMedia) and is left to its call site to append — "create"
only knows about MODALS.createDocument.