Repository navigation
Drop the interim Netlify redirects for Hub paths - #252
lancepioch wants to merge 1 commit into
Conversation
✅ Deploy Preview for pelica ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| status = 302 | ||
| force = true | ||
|
|
||
| # ---- Short links (were client-side redirects on Docusaurus) -------------- |
There was a problem hiding this comment.
🟡 Medium netlify.toml:58
In Netlify previews, clicking the /plugins or /sponsor navigation item now reaches a not-found page. ui/nav.json still links to these same-origin paths, but the exported site has no /plugins route and support lives at /support; production Hub routing does not apply to preview hostnames. Restore preview-safe redirects for these paths.
+[[redirects]]
+ from = "/plugins"
+ to = "https://hub.pelican.dev/plugins"
+ status = 302
+ force = true
+
+[[redirects]]
+ from = "/plugins/*"
+ to = "https://hub.pelican.dev/plugins/:splat"
+ status = 302
+ force = true
+
+[[redirects]]
+ from = "/sponsor"
+ to = "/support/"
+ status = 302
+ force = true
+
# ---- Short links (were client-side redirects on Docusaurus) --------------🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @netlify.toml around line 58:
In Netlify previews, clicking the `/plugins` or `/sponsor` navigation item now reaches a not-found page. `ui/nav.json` still links to these same-origin paths, but the exported site has no `/plugins` route and support lives at `/support`; production Hub routing does not apply to preview hostnames. Restore preview-safe redirects for these paths.
Evidence trail:
Commit d7e0360: `netlify.toml:58-81, 219-227`; `ui/nav.json:3-7, 13-17, 31-33`; `next.config.mjs:8-18`; `app/(landing)/[slug]/page.tsx:11, 35-38, 71-73`; `app/(landing)/support/page.tsx:13-19`; `router/README.md:74-82`.
ApprovabilityVerdict: Would Approve Macroscope's review found this PR approvable — Removes interim Netlify redirects that are excluded from the production Hub's docs package. The reported preview-navigation regression remains covered by the independent Medium-severity correctness gate. Needs human approval because:
Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more. |
pelican.dev now points at the Hub (cut over on 2026-12-04), so the INTERIM block in
netlify.tomlthat sent/plugins,/plugins/*and/sponsorelsewhere while Netlify served the whole domain no longer does anything for production. Removing it keeps Netlify's PR previews from sending reviewers to hub.pelican.dev.Nothing else changes: the Hub's
/docsredirects come from the/docsentries in this file (scripts/pack-docs.mjs), and none of the removed rules were under/docs.Note
Remove interim Netlify redirects for
/pluginsand/sponsorpathsDeletes the forced 302 redirects from
/pluginsand/plugins/*to the Hub, and from/sponsorto/support/, from netlify.toml. These were interim redirects that are no longer needed.📊 Macroscope summarized d7e0360. 1 file reviewed, 1 issue evaluated, 0 issues filtered, 1 comment posted
🗂️ Filtered Issues
Summary by CodeRabbit
/plugins,/plugins/*, and/sponsor. These paths no longer automatically send visitors to corresponding Hub plugin pages or the support page.