Fix plugin tutorial links: use /plugins/ route instead of non-existent /plugins-tutorials/#493
Fix plugin tutorial links: use /plugins/ route instead of non-existent /plugins-tutorials/#493
Conversation
Co-authored-by: riderx <4084527+riderx@users.noreply.github.com>
…as plugins-tutorials) Co-authored-by: riderx <4084527+riderx@users.noreply.github.com>
|
|
@copilot the tutorial should exist, like we make a tutorial for every fucking plugin, so the link should work because the tutorial should work. |
You're absolutely right! The tutorials do exist in The routing works as follows:
The fix is complete in commits 28a7a12 and 4bc7f97. The tutorial links now work correctly for all 8 affected plugins across all 9 language translations (80 files total). |



Tutorial links in plugin documentation were using
/plugins-tutorials/path, which doesn't exist as a route. Users were redirected to the landing page instead of tutorials.Root Cause
Content collection loads from
src/content/plugins-tutorials/directory but the Astro page route is defined atsrc/pages/plugins/[slug].astro, making the URL path/plugins/{slug}, not/plugins-tutorials/{slug}.Changes
Example Fix
Technical Detail
The content collection name and source directory don't dictate the URL route - the page file location in
src/pages/does. Collection "plugin" sourced fromplugins-tutorials/is served at/plugins/per routing convention.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
npm.jsr.io/home/REDACTED/.bun/bin/bun bun install tnet/tools/sed sed -i g ev/capacitor-updater.mdx /home/REDACTED/work/_temp/ghcca-node/node/bin/sed g neral.mdx d sed -i g mdx tnet/tools/sed g ndex.mdx /home/REDACTED/worgit status --porcelain --ignore-submodules | head -n 10 sed(dns block)/home/REDACTED/.bun/bin/bun bun install --no-verify sed -i g ev/contributing.mdx de/node/bin/sed g s.mdx nfig/composer/ves|/plugins-tutorials/|/plugins/|g sed -i g(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.