5
implement custom redirect on item save
Source: directus/directus#24596 · opened by @alexvdvalk
Summary I have a custom module that links to /admin/content/{collection}/{id}. When a user makes their changes and saves, the user is redirected back to the /admin/content/{collection} but i'd like to have the user redirect back to my module. Basic Example custom module redirects a user to /admin/content/{collection}/{id} ?redirect=/my-custom-module/etc When clicking the save button, the save action will check if a redirect parameter exists and instead use this url. Motivation Improve DX for custom modules Detailed Design implement ?redirect query parameter on the /admin/content/{collection}/{id} route. in saveAndQuit function, check if param exists and redirect to the provided url instead of the current /collection route. Requirements List Must Have: • Check for ?redirect param on save • Priorise thie url over the default behaviour Should Have: • Same behaviour when saving a version Could Have: • Prompt user on save, where wou…
No pledges yet. Be the first to back this.
Comments
Similar requests
Implement 'Save All' Functionality for Nested Collections in Relation Drawer
3 votes · 0 comments
"Save Current Date/Time If NULL" and "Save Current User ID If NULL"
11 votes · 0 comments
Set Item Duplication Fields automatically
26 votes · 0 comments
Notification when multiple persons are working in 1 item
51 votes · 0 comments
Custom back link on Save, Update, Delete
2 votes · 0 comments
No comments yet.