-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat(next): add redirect from ${adminRoute}/collections
to ${adminRoute}
#13061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The has caught me a thousand times as well, but since a custom route could be occupying this URL, we'd also need to check for that before redirecting.
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖
Largest pathsThese visualization shows top 20 largest paths in the bundle.Meta file: packages/next/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_shared.json, Out file: esbuild/exports/shared.js
Meta file: packages/richtext-lexical/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_shared.json, Out file: esbuild/exports/shared_optimized/index.js
DetailsNext to the size is how much the size has increased or decreased compared with the base branch of this PR.
|
Occasionally, I find myself on a URL like
https://domain.com/admin/collections/myCollection/docId
and I modify the URL with the intention of going to the admin panel, but I shorten it in the wrong place:https://domain.com/admin/collections
.The confusion arises because the admin panel basically displays the collections.
I think this redirect is a subtle but nice touch, since
/collections
is a URL that doesn't exist.EDIT: now I'm doing also the same thing for
/globals