mirror of
https://github.com/arikchakma/maily.to.git
synced 2026-04-25 22:25:51 +03:00
[PR #230] [MERGED] fix: resolve link URL variables within repeat/loop items #457
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/maily.to#457
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/arikchakma/maily.to/pull/230
Author: @toxin20
Created: 2/7/2026
Status: ✅ Merged
Merged: 2/7/2026
Merged by: @arikchakma
Base:
main← Head:main📝 Commits (1)
616e462fix bug so link URL variables in repeat items resolve correctly📊 Changes
2 files changed (+50 additions, -1 deletions)
View changed files
📝
packages/render/src/maily.tsx(+1 -1)📝
packages/render/src/render.test.ts(+49 -0)📄 Description
I noticed that link URLs with variables weren't resolving correctly when used inside repeat blocks. The href would just stay as the raw variable reference instead of being replaced with the actual value from each item's payload.
The root cause: When rendering marks (like links) inside a repeat block, we weren't passing the render options through to the mark processor.
The fix is a one-liner: just forward options to the mark handler call. Added a test to make sure link URL variables inside repeat items resolve as expected.
Thanks for creating this tool btw! In our app, we're sending transactional mail via SMTP, and Maily really helps creating an effective workflow where we design templates -> save them as JSON -> render and interpolate them at runtime when sending mails.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.