Fixed tag matching issue where tags with spaces and non-ASCII characters (like "Medicine - 醫學") were not working correctly on Vercel. Changes: 1. Updated getTagSlug() to normalize tags without encoding - Next.js handles URL encoding automatically 2. Added decodeURIComponent() in tag page to decode incoming URL parameters 3. This ensures proper matching between generated slugs and URL parameters The fix resolves: - Tag archive pages showing wrong characters - Articles not being collected under correct tags - URL display issues with encoded characters 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
3.1 KiB
3.1 KiB