11. Navigation
context.redirect(url)
sync· returnsvoid
Navigates to a path inside the app, or to an absolute URL.
Prop
Type
const created = await context.sdk.entities.create({
params: { entitySlug: "invoices" },
json: invoice
});
context.redirect("/invoices/" + created.id);await context.sdk.entities.delete({
params: { entitySlug: "samples", recordId: context.router.id }
});
context.redirect("/samples");context.redirect("https://autorun.ai/docs");