Skip to content

Fix preview btn#12

Merged
yehezkielgunawan merged 2 commits intomainfrom
fix-preview-btn
Sep 28, 2025
Merged

Fix preview btn#12
yehezkielgunawan merged 2 commits intomainfrom
fix-preview-btn

Conversation

@yehezkielgunawan
Copy link
Copy Markdown
Owner

Description

Linked Issues

Preview or Screenshot

Builds the /og URL from form values via URLSearchParams (properly encoded) and updates the anchor dynamically, preventing nested/duplicated query strings and ensuring the new tab opens with the expected image.
- Move DOM and preview logic from dangerouslySetInnerHTML to a served script
- Add /app.js route backed by src/app.script.ts
- Keep behavior identical (URLSearchParams encoding, dynamic href updates)
@yehezkielgunawan yehezkielgunawan self-assigned this Sep 28, 2025
@yehezkielgunawan yehezkielgunawan added the bug Something isn't working label Sep 28, 2025
@yehezkielgunawan yehezkielgunawan merged commit d41a677 into main Sep 28, 2025
1 check passed
@yehezkielgunawan yehezkielgunawan deleted the fix-preview-btn branch September 28, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant