Not possible to create URL redirects including source code as parameter

Not possible to create URL redirects including source code as parameter

Commerce Cloud Platform

Last updated 2019-03-19 ·Reference W-5834471 ·Reported By 1 users

Fixed in version 19.3 Preview Update / GA

Summary
Not possible to create URL redirects including source code as parameter.

In the Business Manager an error message will be displayed and the below NullPointerException will be tracked in the application error log file:

Error executing pipeline: ViewUrlRedirect_52 Sub-Pipeline: ViewUrlRedirect_52 NodeID: Update.2:DPipeletNode:UpdateUrlRedirect.1
Exception occurred while executing pipelet 'UpdateUrlRedirect'.
...
Caused by: java.lang.NullPointerException
at com.demandware.beehive.core.capi.redirect.RedirectURLUtils.ensureAdditionalRedirectUrlParams(RedirectURLUtils.java:53)
at com.demandware.beehive.core.internal.redirect.RedirectUrlMgrImpl.isRedirectLoopConfigured(RedirectUrlMgrImpl.java:227)
at com.demandware.component.foundation.pipelet.redirect.UpdateUrlRedirect.execute(UpdateUrlRedirect.java:291)
at com.demandware.beehive.core.internal.pipeline.PipeletNode.executeNode(PipeletNode.java:445)


This defect impacts instances on release 19.2 or prior.

Repro
In Merchant Tools - SEO - URL Redirects

not possible to use source code (src=....) as value of "Destination URL Parameters" field due to bug
on SFCC side. Exception is Thrown when redirect configuration is saved.

Workaround
As a workaround use the static mapping configuration:

Merchant Tools > SEO > Static Mappings

Example:
/email/febpromopreview19?src=febpreview19 p,,,SourceCodeRedirect-Start,,src,febpreview19

Reported By (1)

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.