> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # Redirect The `` verb transfers control from the current document to another. It is effectively an exit statement from the current document, as there is no way to return to any instructions listed after the `` verb. An example message that redirects next XML instruction to another document: ```xml https://your-application.com/next-instructions ``` **`Node.js`** ```javascript title="Node.js" const { RestClient } = require("@signalwire/compatibility-api"); const response = new RestClient.LaML.VoiceResponse(); response.redirect("https://your-application.com/next-instructions"); console.log(response.toString()); ``` ```csharp using Twilio.TwiML; using System; class Example { static void Main() { var response = new VoiceResponse(); response.Redirect(new Uri("https://your-application.com/next-instructions")); Console.WriteLine(response.ToString());; } } ``` ```python from signalwire.voice_response import Redirect, VoiceResponse response = VoiceResponse() response.redirect('https://your-application.com/next-instructions') print(response) ``` ```ruby require 'signalwire/sdk' response = Signalwire::Sdk::VoiceResponse.new do |response| response.redirect('https://your-application.com/next-instructions') end puts response.to_s ``` ## Verb attributes The following attribute is available for the verb ``: **`method`** `string` — default: POST Specifies whether the redirect is a `GET` or a `POST`. --- ## Nouns The following item is accepted as a noun for the `` verb: | Noun | Description | | :----------- | :-------------------------------------------------- | | `plain text` | The URL, in plain text, of the document to execute. | ## Nesting No other verbs can be nested within `` and you cannot nest `` within any other verbs. ## Examples ### Redirect to absolute URL ```xml http://www.somesite.com/NextDoc.xml ``` **`Node.js`** ```javascript title="Node.js" const { RestClient } = require("@signalwire/compatibility-api"); const response = new RestClient.LaML.VoiceResponse(); response.redirect("http://www.somesite.com/NextDoc.xml"); console.log(response.toString()); ``` ```csharp using Twilio.TwiML; using System; class Example { static void Main() { var response = new VoiceResponse(); response.Redirect(new Uri("http://www.somesite.com/NextDoc.xml")); Console.WriteLine(response.ToString());; } } ``` ```python from signalwire.voice_response import Redirect, VoiceResponse response = VoiceResponse() response.redirect('http://www.somesite.com/NextDoc.xml') print(response) ``` ```ruby require 'signalwire/sdk' response = Signalwire::Sdk::VoiceResponse.new do |response| response.redirect('http://www.somesite.com/NextDoc.xml') end puts response.to_s ``` To continue processing this message using the instructions in another document, specify the absolute URL of that document as the noun to the `` verb. --- \*Twilio and TwiML are trademarks of Twilio, Inc. SignalWire, Inc. and its products are not affiliated with or endorsed by Twilio, Inc.