Skip to content

Conversation

@joeluong-sfcc
Copy link
Contributor

@joeluong-sfcc joeluong-sfcc commented Oct 31, 2025

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'

@joeluong-sfcc joeluong-sfcc requested a review from a team as a code owner October 31, 2025 20:09
Copy link
Contributor

@kevinxh kevinxh left a comment

Choose a reason for hiding this comment

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

Thanks for fixing the issue!

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.

3 participants