Skip to content

fix: use mailto: placeholder for obfuscated contact links#80

Merged
rubenhensen merged 1 commit into
mainfrom
fix/contact-href-prerender
Apr 16, 2026
Merged

fix: use mailto: placeholder for obfuscated contact links#80
rubenhensen merged 1 commit into
mainfrom
fix/contact-href-prerender

Conversation

@rubenhensen

@rubenhensen rubenhensen commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace href="#contact" with href="mailto:" on obfuscated contact links
  • The #contact href caused SvelteKit prerender to fail because no element with id="contact" exists on the page
  • mailto: is a safe placeholder that gets replaced by the real address via JS at runtime

Test plan

  • Docker build completes successfully (npx svelte-kit sync && npm run build)
  • Contact links still work (JS replaces href with mailto:info@postguard.eu on mount)

The #contact href caused SvelteKit prerender to fail because no element
with id="contact" exists. Using mailto: as a safe fallback that gets
replaced by JS at runtime.
@rubenhensen rubenhensen merged commit b9a2f80 into main Apr 16, 2026
8 checks passed
@rubenhensen rubenhensen deleted the fix/contact-href-prerender branch April 16, 2026 19:21
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.

1 participant