Skip to content

No longer possible to put custom views under /collections/<slug> #8664

Closed
@tyteen4a03

Description

@tyteen4a03

Link to reproduction

No response

Environment Info

Node.js v22.7.0

Binaries:
Node: 22.7.0
npm: 10.8.2
Yarn: N/A
pnpm: 9.12.1
Relevant Packages:
payload: 3.0.0-beta.113
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.0.0: Tue Sep 24 23:39:07 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6000
Available memory (MB): 32768
Available CPU cores: 10

Describe the Bug

Custom views in v3 no longer support routing views under /collection/<slug>, which used to be possible in v2.

I'm not sure if this is a bug or if this is intended. Either way, clarification would be good.

Reproduction Steps

Add a custom with a config like this:

                JobSheetDocument: {
                    Component: "@/modules/transport/components/JobSheetDocument/JobSheetDocument",
                    path: "/collections/jobs/:id/job-sheet",
                    exact: true,
                },

(the easiest way to check this is by modifying customParamViewPath to /collections/users/:id/view (

export const customParamViewPath = `${customParamViewPathBase}/:id`
)

Adapters and Plugins

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions