# Conditional Redirect 🔀

## 🔗 Links

> [Demo](https://digitaleyedemo.bubbleapps.io/redirect) | [Editor](https://bubble.io/page?type=page\&name=redirect\&id=digitaleyedemo\&tab=tabs-1)

> [Plugin page](https://bubble.io/plugin/conditional-redirect-1618602673883x571754493077880800)

> [Forum](https://forum.bubble.io/t/plugin-release-conditional-redirect/146695)

## ℹ️ Introduction

This is a small straightforward plugin having 2 modes to conditional redirect to an external URL.

## 🔥 Features & Documentation

### ➡️ Mode 1

Plugin action that can be used in Workflow when a certain event happens. Ex.: Redirect to an external URL if current URL contains a certain substring.

![](/files/-MYRTPwrO1q-t4JC9bl4)

### ➡️ Mode 2

Element "Redirect". Add it to your page and provide "Condition" and "URL" fields. Once "Condition" becomes true, you will be redirected to provided URL.

![](/files/-MYRTW33NQCjcoRLJ2uY)

Check the demo for a better understanding.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bubble.digital-bird.com/plugins/conditional-redirect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
