a tool for shared writing and social publishing
Something went wrong. Try again.
skip auth redirect for crawlers on custom domains (#291) master
The middleware redirects unauthenticated custom-domain visitors through leaflet.pub/auth_callback to hydrate an external_auth_token cookie. Bots don't hold cookies or run JS, so they never complete the handshake and end up indexing the redirect instead of the publication. Detect common crawler/social preview user agents and let them through unauthenticated. Co-authored-by: Claude <noreply@anthropic.com>
Author Jared Pereira Co-author Claude Committer GitHub Date (Apr 18, 2026, 12:11 AM UTC) Commit 3ebf9823 3ebf9823d5c995b8e2bc8240b3a11ec8cf7abbe7 Parent a10bdc99 a10bdc99d781ab398b3249c56fda085911be02f1