search for standard sites pub-search.waow.tech
search zig blog atproto
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: use leaflet.pub fallback URL for docs without basePath

Documents without a custom subdomain (basePath) were falling back to
pdsls.dev, but leaflet.pub supports a /p/did/rkey URL pattern that
provides a native leaflet viewing experience.

Now uses leaflet.pub/p/{did}/{rkey} instead of pdsls.dev for leaflet
documents missing basePath.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

zzstoatzz b75a43f2 91b89495

+7 -1
+7 -1
site/index.html
··· 571 571 return `https://${doc.basePath}${doc.path}`; 572 572 } 573 573 574 - // 4. Fallback: pdsls.dev universal viewer (always works for any AT Protocol record) 574 + // 4. Platform-specific fallback URL (e.g., leaflet.pub/p/did/rkey) 575 + const config = PLATFORM_CONFIG[platform]; 576 + if (config?.docUrl && doc.did && doc.rkey) { 577 + return config.docUrl(doc.did, doc.rkey); 578 + } 579 + 580 + // 5. Fallback: pdsls.dev universal viewer (always works for any AT Protocol record) 575 581 if (doc.uri) { 576 582 return `https://pdsls.dev/${doc.uri}`; 577 583 }