Redirect after create/update collection item? #16617
Replies: 2 comments
-
|
As far as I know, there is currently no built-in option to automatically redirect back to the collection list page after creating or updating an item in the admin panel. Right now, the default behavior keeps the user on the document edit view after save. That said, this could be a valuable UX improvement, especially for workflows involving bulk content management where editors frequently create or update multiple entries in succession. A configurable option such as:
would provide more flexibility depending on the use case. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @ignacio-dev, In Short: No, there is no built-in setting for this redirect in Payload's admin panel. The default behavior is to stay on the document edit view after save. However, you can implement a custom solution in two ways: Option 1: Custom Save Button (Cleanest)Create a custom React component that replaces the default Save button. You can add custom buttons to the admin toolbar using // In your collection config
admin: {
components: {
elements: {
SaveButton: '/path/to/CustomSaveButton'
}
}
}Option 2: Client-side Redirect (Quickest)Add a Option 3: Browser Bookmark (Simplest)Use your browser's back button after saving - it returns to the previous page (the list view) faster than implementing custom code. The Redirects Plugin is great for frontend URL redirects, but it won't help with admin panel navigation flow. Your best bet is a custom Save Button component if this workflow is critical for your editors. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the admin panel, is it possible to redirect the user back to the collection list page after creating/updating a collection item?
Beta Was this translation helpful? Give feedback.
All reactions