---
title: Customise the Redirect URL After a Package on Embed Widgets
description: Customise the Redirect URL After a Package
---

[Skip to content](https://support.hapana.com/kb/article/549#main-content)

English

Show submenu for translations

[![email-logo.png](https://support.hapana.com/hs-fs/hubfs/hapana_2022/email_2022/footer%20logo.png?width=300&height=78&name=footer%20logo.png)](https://info.hapana.com/en?hsLang=en)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Submit Ticket](https://21gxv.share.hsforms.com/2-8HozJXMSTW8kaFHC32eaw)

[Submit Ticket](https://21gxv.share.hsforms.com/2-8HozJXMSTW8kaFHC32eaw)

 Hapana Help | Find answers here

- There are no suggestions because the search field is empty.

1. [Hapana Knowledge Base](https://support.hapana.com/?hsLang=en)
2. [Website Embed Widgets](https://support.hapana.com/website-embed-widgets?hsLang=en)

# Customise the Redirect URL After a Package on Embed Widgets

 

**Overview**

This feature allows users to customise the redirect URL after a package or membership purchase through V2 Embed Widgets. While the default redirect URL set in the Hapana V2 Admin remains in place, businesses can now define a specific redirect URL within the embed widget, offering greater control over the customer’s post-purchase journey.

### **Key Benefits**

#### 1. **Tailored Post-Purchase Experience**

- Businesses can **redirect customers to custom thank-you pages** with promotional content based on the package they purchased.

#### 2. **Greater Flexibility & Control**

- The **redirect-url parameter** in the embed widget ensures customers are taken to a designated page instead of relying solely on the default admin settings.

#### 3. **Seamless Integration for Promotional Campaigns**

- Gyms and studios can **enhance marketing efforts** by guiding customers to targeted landing pages immediately after purchase.

 

---

### **How It Works**

#### **Case 1: No Redirect URL Attribute Added (Default Behaviour)**

#### Example Widget:

```
<hapana-widget data-type="packages" widget-id="XXX" package-id="" variant=""></hapana-widget> <script src="https://widget.hapana.com/hapana_widget.js"></script>
```

#### Flow:

- If the **redirect-url** attribute is **not** added, the page will redirect according to the URL set in the **Brand's Admin configuration**.

- - *Contact Support or your Account Manager to have a your standard redirect URL configured.*
- If no redirect URL is configured in the **Brand’s Admin**, **no redirection** will occur after purchase.

#### **Case 2: Custom Redirect URL Added**

#### Example Widget:

```
<hapana-widget data-type="packages" widget-id="XXX" redirect-url="https://hapana.com" package-id="" variant=""></hapana-widget><script src="https://widget.hapana.com/hapana_widget.js"></script>
```

#### Flow:

- When the **redirect-url** parameter is added with a valid URL, the customer will be **redirected to the specified URL** following a purchase. In the this example, that URL would be [https://hapana.com](https://hapana.com/?hsLang=en).
- This **overrides any default redirect URL** set in the **Brand’s Admin configuration**.

#### **Case 3: Empty Redirect URL Parameter**

#### Example Widget:

```
<hapana-widget data-type="packages" widget-id="XXX" redirect-url="" package-id="" variant=""></hapana-widget><script src="https://widget.hapana.com/hapana_widget.js"></script>
```

#### Flow:

- If the **redirect-url** parameter is added but left **empty**, no redirection will take place after purchase.
- This setting **overrides any redirect URL configured in the Brand’s Admin**, ensuring **no redirection occurs**.

 

**Example Configurations**

| Custom Redirect URL | Admin Redirect URL | Desired Output |
| --- | --- | --- |
| https://hapana.com | https://google.com | https://hapana.com |
| https://hapana.com | Empty | https://hapana.com |
| Set to Blank | https://google.com | No redirect |
| Set to Blank | Empty | No redirect |
| Attribute not present | https://google.com | https://google.com |
| Attribute not present | Empty | No redirect |

 

   **Best Practices**

- Ensure URLs are correctly formatted and accessible to prevent broken redirects.
- Use campaign-specific URLs to improve marketing engagement and conversion rates.
- Leverage the widget transition feature to maintain a smooth user experience within the app.

 

This update provides greater flexibility to optimise the post-purchase journey, helping businesses improve customer engagement and drive conversions.

- [Member Management](https://support.hapana.com/member-management?hsLang=en#main-content)

    - [Account Settings](https://support.hapana.com/member-management?hsLang=en#account-settings)
    - [Client Accounts](https://support.hapana.com/member-management?hsLang=en#client-accounts)
    - [Edit Profile](https://support.hapana.com/member-management?hsLang=en#edit-profile)
    - [Retail Configurations](https://support.hapana.com/member-management?hsLang=en#retail-configurations)
    - [Other](https://support.hapana.com/member-management?hsLang=en#other)
    - [Schedule](https://support.hapana.com/member-management?hsLang=en#schedule)
    - [Client Page](https://support.hapana.com/member-management?hsLang=en#client-page)
    - [General](https://support.hapana.com/member-management?hsLang=en#general)
    - [Reporting](https://support.hapana.com/member-management?hsLang=en#reporting)
    - [Retail Dashboard](https://support.hapana.com/member-management?hsLang=en#retail-dashboard)
    - [Team Settings](https://support.hapana.com/member-management?hsLang=en#team-settings)
    - [Hapana Member Access Control (MAC) Doors](https://support.hapana.com/member-management?hsLang=en#hapana-member-access-control-mac-doors)
    - [Cash Drawer](https://support.hapana.com/member-management?hsLang=en#cash-drawer)
- [Marketing Solutions](https://support.hapana.com/marketing-solutions?hsLang=en#main-content)

    - [App](https://support.hapana.com/marketing-solutions?hsLang=en#app)
    - [Contacts](https://support.hapana.com/marketing-solutions?hsLang=en#contacts)
    - [Marketing](https://support.hapana.com/marketing-solutions?hsLang=en#marketing)
    - [Conversations](https://support.hapana.com/marketing-solutions?hsLang=en#conversations)
    - [Settings](https://support.hapana.com/marketing-solutions?hsLang=en#settings)
    - [Automations](https://support.hapana.com/marketing-solutions?hsLang=en#automations)
- [Branded Solutions](https://support.hapana.com/branded-solutions?hsLang=en#main-content)

    - [Branded App](https://support.hapana.com/branded-solutions?hsLang=en#branded-app)
    - [Branded Kiosk](https://support.hapana.com/branded-solutions?hsLang=en#branded-kiosk)
- [Hapana Hub](https://support.hapana.com/hapana-hub?hsLang=en)
- [Website Embed Widgets](https://support.hapana.com/website-embed-widgets?hsLang=en)

- [About us](https://hapana.com/about-us/)
- [Careers](https://hapana.com/careers/)
- [Contact us](https://hapana.com/contact-us/)
- [Privacy policy](https://hapana.com/privacy-policy/)
- [Terms & conditions](https://hapana.com/terms-and-conditions/)

[![email-logo.png](https://support.hapana.com/hs-fs/hubfs/hapana_2022/email_2022/footer%20logo.png?width=300&height=78&name=footer%20logo.png "email-logo.png")](http://hapana.com?hsLang=en)

Copyright © 2025, Hapana