OneML reference
Redirect
The <Redirect> verb transfers control of the call to a new OneML document, fetched from the URL you specify. Verbs after <Redirect> in the current document do not execute.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
method | string | POST | HTTP method used to fetch the next OneML document. One of GET or POST. |
Nesting
<Redirect> contains the URL of the next OneML document as text content, either an absolute URL or a URL relative to the current document. It takes no nested verbs.
Warning: More than 10 consecutive redirects without new caller input ends the call with an error. Redirects triggered by caller input (for example, the URL a
<Gather>verb requests after collecting digits) reset the counter.
Examples
Redirecting to an absolute URL:
Code
Redirecting to a relative path with GET:
Code
See also
Last modified on