Skip to content

Broadcasts: Export: Convert Relative to Absolute URLs - #1249

Merged
n7studios merged 2 commits into
mainfrom
broadcasts-export-absolute-urls
Oct 23, 2026
Merged

n7studios merged 2 commits into
mainfrom
broadcasts-export-absolute-urls

Conversation

@n7studios

Copy link
Copy Markdown
Contributor

Summary

When exporting a WordPress Post to a Kit Broadcast, converts relative and root-relative URLs in links and images to absolute URLs, as emails have no site context (e.g. /book/ becomes https://example.com/book/). Uses WordPress' links_add_base_url(), with the Post's permalink as the base URL.

Testing

  • BroadcastsExportTest: confirms relative and root-relative links and images are converted to absolute URLs, and absolute, mailto: and tel: URLs are unchanged. The Kit API request is mocked.

Checklist

@n7studios n7studios added this to the 3.4.8 milestone Oct 19, 2026
@n7studios n7studios self-assigned this Oct 19, 2026
@n7studios n7studios added the bug label Oct 19, 2026
@github-actions

Copy link
Copy Markdown

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios
n7studios marked this pull request as ready for review October 19, 2026 10:09
@n7studios
n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team October 19, 2026 10:09
@n7studios
n7studios merged commit f7a4cb2 into main Oct 23, 2026
15 checks passed
@n7studios
n7studios deleted the broadcasts-export-absolute-urls branch October 28, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants