Query parameters lost during CDN or dispatcher redirects Adobe Experience Manager

In Adobe Experience Manager as a Cloud Service, query parameters such as utm, gclid, and fbclid get removed during redirects. This behavior affects redirect logic and tracking when CDN strips parameters or redirects ignore the query string. To fix this issue, update CDN configuration and use correct redirect rules.

Description description

Environment

Adobe Experience Manager as a Cloud Service

Adobe Experience Manager Asset

Issue/Symptoms

  • UTM parameters such as utm_source, utm_campaign, or gclid disappear after a redirect.
  • Dispatcher redirect rules depending on %{QUERY_STRING} do not execute.
  • CDN-level redirects drop all query parameters when using reqProperty: path.
  • Redirects work locally or in AMS but fail in Cloud environments.

Resolution resolution

To fix this issue, follow these steps:

  1. Identify whether query parameters are missing before reaching the Dispatcher or only lost during redirects.

  2. Create or update the cdn.yaml file in your repository using the following structure:

    code language-none
    kind: "CDN"
    version: "1"
    metadata:
      envTypes: [ "dev", "stage", "prod"]
    data:
      requestTransformations:
        removeMarketingParams: false
        rules: [ ]
    
  3. If validation fails with a missing rules property, add an empty rules: [ ] entry under requestTransformations.

  4. Re-test and confirm that query parameters are preserved.

  5. Check for conflicting redirect rules in both cdn.yaml and Dispatcher configuration.

  6. If using CDN redirects, set reqProperty: url instead of reqProperty: path.

  7. Confirm that match and transform rules apply to URLs that include query parameters.

  8. Update Dispatcher redirect rules to preserve query parameters using QSA:

    code language-none
    RewriteRule /path$ /target [ R=301,L,QSA]
    
recommendation-more-help
experience-cloud-kcs-help-kbarticles