# Responsible URL

{% embed url="<https://www.youtube.com/watch?v=USSplJhRaiY>" %}
How to implement Responsible URLs
{% endembed %}

Responsible URL feature provides an option to handle redirection of different URLs from any tabs to a particular tab elegantly. You have an option to define expressions based on URL matching and redirect the user to that tab screen.

All the tabs has their own Responsible URLs. You must define it separately for all tabs if required.

Let's take an example.

**Scenario :** I have showcased some hot selling and new arrival products on Home screen. When I click on any of it, it should open it in Shop screen rather than Home screen.

<div align="center"><img src="/files/Y2kbEFAWeYcjjFYqaUMT" alt="Home screen with showcased products"> <img src="/files/THL8gktbJBRaa9FgUxsh" alt="Showcased Product opening on Home screen"></div>

### Steps to add responsible URLs:

* Go to the screen where you want to add the responsible URL. As an example here, I want to redirect all the products specific URLs to Shop page. So go to Shop screen.
* Go to Responsible URLs

![Add responsible URLs](/files/EucqonsJZR6nFLctUvSt)

* Click on <mark style="color:red;">+ADD</mark> button
* In Expression to match, Enter the URL expression you want to match. As an example, my URL is <https://ecommercely.twinr.site/product/seasoning/>. Which means all the products are matching with the expression "product/"
* In Match as, you can decide how you want to match the expression. As a substring, Prefix, Suffix or Equal. Here I want to redirect all the urls containing "products/" as a substring, to Shop screen.
* Save it as a Draft and Test it.&#x20;


---

# 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://help.twinr.dev/screen-customization/tab-bar/responsible-url.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.
