FeatureFuel
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.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests