Configuring Save and Cancel Return URLs
Save and cancel return URLs control where users are routed after they interact with your Growth cancel experience:
- Save return URL: Where users land after they click Never mind and choose to stay.
- Cancel confirmation URL: Where users land after they confirm cancellation.
You can configure these URLs at three levels: mapped URL fields, global defaults, and individual page settings.
How Chargebee Growth Resolves Return URLs
Chargebee Growth resolves return URLs in the following order of priority, from highest to lowest:
- Page-level URL: Set directly on a page. This overrides every other level.
- Global URL configuration: Applies across all pages by default.
Mapping Save and Cancel URL fields
If you use the Chargebee Growth JS snippet to initiate cancel sessions, you can pass the save and cancel URLs as mapped fields.
- Go to Settings > Setup > Field mappings.
- Under Account Info, map the following fields:
| Field | Description |
|---|---|
| Cancel confirmation URL | The URL to redirect users who confirm cancellation. |
| Save return URL | The URL to redirect users who click Never mind. |
After you map these fields, they populate your global URL configuration automatically.
Configuring Global Return URLs
Global URLs serve as the default for all pages in your Growth experience.
- Go to Settings > Setup > Configuration > Global URL Configuration.
- Set either of the two avialable fields:
- Global Nevermind URL: Uses the mapped Save return URL by default.
- Global Cancel URL: Uses the mapped Cancel confirmation URL by default.
- Click Save & close after you make changes.
Global URL configuration applies to new pages by default. It does not change pages that already have their URLs configured.
Configuring Return URLs at the Page Level
You can override the global default for any individual page.
- Go to Experiences > Pages, select a page.
- Go to Page settings > Button Configurations.
- For each button, Nevermind and Cancel, select a destination type from the dropdown:
| Option | Description |
|---|---|
| URL | Enter a static or dynamic URL directly. |
| Redirect Page | Link the button to a configured redirect page. |
| Global URL Configuration | Use the global default URL. |
If you select Redirect Page, an additional dropdown appears for you to select the target page. For more details, see the redirect pages documentation.
Editing a URL field
Enter a static URL
Type a URL directly into the URL field. You must enter a valid URL format. Invalid entries do not save and display an error.
Insert a dynamic URL using mapped fields
To use a mapped field value as part of the URL:
- Click the globe icon to view all fields mapped as URL types.
- Click the lightning bolt icon to insert a dynamic variable.
Dynamic variables are appended as query parameters. For example:
https://www.example.com?subscription_id=Subscription ID|1234
This passes the subscription ID as a parameter to your cancel confirmation page, so that your backend can identify and process the cancellation.
Where return URL configuration appears
The same three options, URL, Redirect Page, and Global URL Configuration, are available wherever a URL input appears in Chargebee Growth, including:
- Page settings (Button Configurations)
- The offer editor
- Global URL Configuration (Settings > Setup)
For questions about save and cancel return URLs, contact growth-support@chargebee.com.
Was this article helpful?