What's Fixed
- URL Trailing Slash Issues: Removed double slashes in URLs caused by extra trailing slash after
${base}(#17, #18) - Category URL Slugification: Fixed category links with slashes and spaces to properly generate URL-safe slugs (#19)
- Categories like "UI/UX" now generate
/categories/ui-uxinstead of/categories/ui/ux - Categories like "Web Development" now generate
/categories/web-developmentinstead of broken space-containing URLs
- Categories like "UI/UX" now generate
Files Changed
- Updated Sidebar.astro: Fixed blog post links and category links
- Updated blog.astro: Fixed blog post links
- Updated [...slug].astro: Fixed "Back to Blog" link and category tag links
Technical Details
- Applied
.replace(/[\/\s]+/g, '-')to category slugification for proper URL formatting - Standardized
${base}usage across all components to prevent double slashes - Ensured consistency between category page routing and category link generation
Credits
Special thanks to @frank-kirgis for reporting all three issues with detailed information!
Full Changelog: v1.1.3...v1.2.0