---
schema_version: "1"
id: 709206b4b2b3e973c1d5852e0e8a610fa28031b30521e62250bb0392002c3cae
title: Test Dynamic URL Mappings for Source Codes
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_testing_dynamic_url_mappings_for_source_codes.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_testing_dynamic_url_mappings_for_source_codes.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3ec3a62c508f683d970a17a78ee8fe72ee5fc470faa0ffcaf9f7f5d0850372c3
description: Support a friendly URL that a customer can enter on your B2C Commerce storefront. This URL takes the customer to a specific page that shows the results of the search of category JA, for example. Test a dynamic URL mapping.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Test Dynamic URL Mappings for Source Codes

Support a friendly URL that a customer can enter on your B2C Commerce storefront. This URL takes the customer to a specific page that shows the results of the search of category JA, for example. Test a dynamic URL mapping.

1. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **site** | **Merchant Tools** | **Online Marketing** | **Source Code Groups**.
    1. On the Source Codes Groups page, click **Find** to view the list of source code groups.
    2. Open the selected source code group.
    3. On the Codes tab, enter SpringSale into the Source-Code Specification field and click **Add**.
    4. On the Redirects tab, select the **Active: Category** option, enter the JA category code, and click **Apply**.
2. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **site** | **Merchant Tools** | **SitePreferences** | **Source-Codes**.
    1. On the Source Code Preference page, enter src into the URL Parameter Name field.
    2. Enter http://www.yourstore.com/specials/ into the Standard Redirect URL field.
    3. Click **Apply**.
3. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **site** | **Merchant Tools** | **SEO** | **Aliases**.
    1. On the Aliases page, enter www.yourstore.com.
    2. Click **Save**.
4. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **site** | **Merchant Tools** | **SEO** | **Dynamic Mapping**.
    
    1. On the Dynamic Mapping page, enter /specials/?src=\* p,,,SourceCodeRedirect-Start,,src,{0}.
    2. Click **Save**.
    
    What appears on the left side of the space characters (`/specials/?src=*`) is only a fragment of a URL. Salesforce B2C Commerce searches through the aliases list to find an entry (in this case, www.yourstore.com) that can complete the URL. B2C Commerce then interprets _src_ as a parameter and knows to give it the value "SpringSale".
    
    The left side of the space character is replaced by the codes on the right side. B2C Commerce interprets the right side of the assignment as an instruction to go to the Start node of the `SourceCodeRedirect` pipeline and pass in the value of the source code in the calling URL. While `src` is the name of the parameter, `{0}` references the first argument of the URL.
5. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **site** | **Online Marketing** | **Source Code Groups**.
    
    1. On the Source Codes Groups page, click **Find** to show the list of source code groups.
    2. Open the selected source code group.
    3. On the Codes tab, enter a test source code into the Source-Code control and click **Test Match**.
    
    One or more sample Redirect URLs are listed at the bottom of the page. Copy one sample URL at a time into the navigation bar of your browser to test how it behaves.