Skip to content

FIX: Interpolate placeholders with URL-encoded braces - #324

Merged
angusmcleod merged 3 commits into
paviliondev:mainfrom
davidlippidinova:fix/mapper-encoded-placeholder-braces
Nov 5, 2026
Merged

angusmcleod merged 3 commits into
paviliondev:mainfrom
davidlippidinova:fix/mapper-encoded-placeholder-braces

Conversation

@sisti86dinova

Copy link
Copy Markdown
Contributor

u{...}, w{...} and v{...} placeholders were left untouched when their braces were URL-encoded (%7B / %7D), which happens when a placeholder is used inside a URL (e.g. a route_to action or a link in post content).

sisti86dinova and others added 2 commits November 3, 2026 10:41
u{...}, w{...} and v{...} placeholders were left untouched when their
braces were URL-encoded (%7B / %7D), which happens when a placeholder is
used inside a URL (e.g. a route_to action or a link in post content).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sisti86dinova

Copy link
Copy Markdown
Contributor Author

Problem

u{...}, w{...} and v{...} placeholders are not interpolated when their braces are URL-encoded (%7B / %7D). This happens when a placeholder is used inside a URL, for example in a route_to action or a link in post content.

Change

CustomWizard::Mapper#interpolate accepts both {/} and %7B/%7D (hex digits in either case). The placeholder prefix stays case-sensitive, so behaviour is unchanged for existing templates.

Tests

Added a mapper spec that interpolates user, wizard and value placeholders with encoded braces.

🤖 Generated with Claude Code

The expected date is computed after interpolation, so the spec failed
when it ran across midnight.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DSz8MWGMF9Utk4gyCsBEcw
@angusmcleod
angusmcleod merged commit b42da72 into paviliondev:main Nov 5, 2026
5 checks passed
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.

2 participants