Skip to content

Conversation

@joeluong-sfcc
Copy link
Collaborator

This PR fixes the path encoding for multi-segment paths in custom endpoints using the helper.callCustomEndpoint function:

Original Issue:

if your endpoint path had multiple segments, everything would get URI encoded, resulting in an invalid path:
'multi/segment/path/Special,Summer%' --> 'multi%2Fsegment%2Fpath%2FSpecial%2CSummer%25'

After the fix:

This PR adds a fix so only special characters get encoded and NOT the path / delimiter:
'multi/segment/path/Special,Summer%' --> 'multi/segment/path/Special%2CSummer%25'

Corresponding fix in the isomorphic SDK: SalesforceCommerceCloud/commerce-sdk-isomorphic#248

@joeluong-sfcc joeluong-sfcc requested a review from a team as a code owner November 18, 2025 15:12
Copy link
Contributor

@vcua-mobify vcua-mobify left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Thanks for fixing it!

@joeluong-sfcc joeluong-sfcc merged commit d7af8c9 into main Nov 20, 2025
7 checks passed
@joeluong-sfcc joeluong-sfcc deleted the ju/fix-custom-endpoint branch November 20, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants