--- title: "Dynamic URL Redirect to Customer Portal" slug: "dynamic-url-redirects" updated: 2020-12-08T20:12:23Z published: 2020-12-08T20:12:23Z canonical: "docs.bellwethr.com/dynamic-url-redirects" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.bellwethr.com/llms.txt > Use this file to discover all available pages before exploring further. # Dynamic URL Redirect to Customer Portal This article explains how to include a dynamic URL redirect in your RetentionEngine. The most common use case for this Dynamic URL Redirects are directing customers back to a specific page in their account. In this example, we'll demonstrate how to build the URL to take the customer to their **individual customer portal** in ReCharge. This feature is currently only available for **Relevant Information** cancel resolutions. ## Step 1. Build the Redirect URL with variable names. ### A. Copy the URL of the desired redirect location ### Here is a URL of a customer's subscription management portal: ``` https://bellwethr-recharge-test.myshopify.com/tools/recurring/portal/8d4317123730e239/subscriptions? ``` ### B. Find the Customer ID in URL ### The only variable we need to locate for this example is the **Customer ID.** Looking at the URL, The Customer ID is the long string of characters - **8d4317123730e239** ### C. Add {Customer_ID} Variable to the original URL ### We will replace that string with a variable in curly brackets, i.e. ***{customer_ID}*** Making the URL for the RetentionEngine something like this: ``` https://bellwethr-recharge-test.myshopify.com/tools/recurring/portal/{customer_ID}/subscriptions? ``` ## Step 2. Adding the link to a Relevant Information Cancel Resolution We'll now add this URL to the desired Relevant Information Cancel Resolution. Open the Cancel Resolution, and simply paste the URL in the "Button Link" field. ![ezgif-2-00b78a9f5270.gif](https://cdn.document360.io/ac5d6d3b-d1b3-4a56-b758-d584b80df54b/Images/Documentation/ezgif-2-00b78a9f5270.gif) If you'd like further instruction on Steps 1 and 2, please watch this walkthrough video! [Embedded content](https://player.vimeo.com/video/456184951) ## Step 3. Edit RetentionEngine Code Snippet to include the new variable. Under the "Settings" tab in the RetentionEngine dashboard, you will now need edit your RetentionEngine Code Snippet to include any additional variables (i.e. the {customer_ID} variable we just added in the previous step). Here is a walkthrough video to guide you through this step: [Embedded content](https://player.vimeo.com/video/456183746) We're happy to help! If you'd like a team member to help you set this up, feel free to reach out to us at support@bellwethr.com.