mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 15:36:53 +02:00
a19c2199b67bff152932898cab01fdedbda98efa
The previous route patterns (/npub:identifier) conflicted with the catch-all /:actor/:identifier route and didn't properly match NIP-19 identifiers. Fixed by: 1. Using wildcard routes with correct prefixes: - /npub1* (not /npub:identifier) - /nevent1* (not /nevent:identifier) - /note1* (not /note:identifier) - /naddr1* (not /naddr:identifier) 2. Updated preview components to use params['*'] for wildcard capture: - Reconstruct full identifier as prefix + captured part - e.g., npub1 + params['*'] = npub107jk7htfv... This ensures routes properly match before the catch-all /:actor/:identifier route and correctly capture the full bech32-encoded identifier. Test URL: /npub107jk7htfv243u0x5ynn43scq9wrxtaasmrwwa8lfu2ydwag6cx2quqncxg
Languages
TypeScript
98.9%
CSS
0.8%
JavaScript
0.3%