10. Navigation
context.redirect(url)
sync· returnsvoid
Redirects the user to the specified route or URL. Commonly used after creating a record to send the user to the new record's detail page.
Prop
Type
var createdInvoice = await context.createEntity("invoices", invoice);
context.redirect("/invoices/" + createdInvoice.values[0].ID);
await context.deleteEntity("samples", context.router.id);
context.redirect("/samples");
context.redirect("https://docs.autorun.ai");