> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quick.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Redirect

The Redirect logic block allows you to redirect users to external URLs either in the current tab or
a new tab, enabling seamless integration with external services and websites.

<Warning>
  Safari and iOS devices will block a redirect in a new tab by default so a popup will be displayed
  to the user. Make sure to test your redirect logic block on these devices.
</Warning>

<Frame style={{ maxWidth: '400px' }}>
  <img src="https://mintcdn.com/urbiport-eca888d8/-ARXSrILxIB7whJw/images/builder/blocks/logic/redirect.png?fit=max&auto=format&n=-ARXSrILxIB7whJw&q=85&s=d513f9ecfd7cb4443e2b1b0518edbdc3" alt="Redirect logic block" width="1298" height="414" data-path="images/builder/blocks/logic/redirect.png" />
</Frame>

## Configuration Options

### URL Settings

* **Target URL**: Specify the destination URL for redirection
* **Variable Support**: Use variables to create dynamic URLs based on user data
* **Validation**: Ensures proper URL formatting for successful redirection
* **Protocol Handling**: Automatically handles HTTP/HTTPS protocols

### Navigation Behavior

* **Current Tab**: Redirects in the same browser tab (default behavior)
* **New Tab**: Opens the URL in a new browser tab or window
* **Cross-Platform Support**: Works across web, mobile web, and embedded environments

## Features

### Dynamic URL Construction

Build personalized redirect URLs using variables:

* **User Data Integration**: Include user information in URLs (e.g.,
  `https://example.com/user/{{User ID}}`)
* **Parameter Passing**: Pass form responses as URL parameters
* **External System Integration**: Direct users to external dashboards with context

### Flexible Navigation Options

* **Same Tab Redirect**: Seamless transition for completing workflows
* **New Tab Opening**: Keep the conversation open while accessing external resources
* **Context Preservation**: Maintain bot session when opening in new tabs

### Cross-Platform Compatibility

* **Web Browsers**: Full support across all modern browsers
* **Mobile Devices**: Optimized for mobile web experiences
* **Embedded Environments**: Works within iframe and embedded implementations

## Advanced Features

### Conditional Redirecting

* **Variable-Based Logic**: Redirect to different URLs based on user responses
* **A/B Testing**: Use with A/B test blocks to redirect users to different landing pages
* **Personalization**: Create personalized redirect experiences based on user data

### External System Integration

* **CRM Integration**: Direct users to personalized CRM portals
* **Payment Processing**: Redirect to payment gateways with pre-filled information
* **Third-party Dashboards**: Link to external analytics or reporting tools
* **Document Systems**: Direct to specific documents or resources

### Analytics and Tracking

* **UTM Parameter Support**: Add tracking parameters for analytics
* **Campaign Tracking**: Monitor redirect performance and user behavior
* **Conversion Tracking**: Measure success rates of redirect-based flows

## Troubleshooting

### Common Redirect Issues

* **Invalid URLs**: Ensure URLs are properly formatted with protocols
* **Variable Errors**: Check that variables contain valid URL components
* **Encoding Problems**: Properly encode special characters in URLs
* **Protocol Mismatches**: Verify HTTP/HTTPS protocol consistency

### Browser-Specific Problems

* **Popup Blockers**: New tab redirects may be blocked by popup blockers
* **Safari Limitations**: iOS Safari has strict popup blocking policies
* **CORS Issues**: Some embedded environments may restrict redirects
* **Mobile Browsers**: Different behavior between mobile and desktop browsers

### Platform-Specific Challenges

* **Mobile Apps**: Redirects may behave differently in WebView components
* **Iframe Restrictions**: Some sites prevent iframe-based redirects
* **Third-party Blockers**: Ad blockers or privacy tools may interfere
* **Network Firewalls**: Corporate networks may block certain redirects

### Integration Problems

* **External System Failures**: Handle cases where target sites are unavailable
* **Authentication Issues**: Manage expired or invalid authentication tokens
* **Parameter Handling**: Ensure external systems properly receive passed parameters
* **Session Management**: Maintain proper session state across redirects
