moderate-tomatoM
Refine4y ago
3 replies
moderate-tomato

Redirect to a different resource after create

Hello, I have this 2 resources TemplateGroup and
Template
. Every
Template
belongs to a TemplateGroup.

When I create (or edit) a
Template
, i want to be redirected on the Show page of the right TemplateGroup (with the same id sent to the server)... Is there a quick way to do it, or i have to set redirect: false and use an effect on the query object to trigger the redirect? It would be cool to set something like redirect : { resource: "template", action: "show", id: 123 }
Was this page helpful?