Skip to content

fix: point legacy redirects at existing pages - #1660

Merged
LadyBluenotes merged 1 commit into
solidjs:mainfrom
RaphaelFakhri:fix/legacy-redirect-404s
Oct 18, 2026
Merged

LadyBluenotes merged 1 commit into
solidjs:mainfrom
RaphaelFakhri:fix/legacy-redirect-404s

Conversation

@RaphaelFakhri

Copy link
Copy Markdown
Contributor
  • I have read the Contribution guide
  • This PR references an issue (except for typos, broken links, or other minor problems)

Description(required)

Three entries in src/middleware/legacy-routes-redirect.ts redirect to pages that no longer exist, so visitors following those old links land on the 404 page. This PR updates them to the current pages:

  • /references/api-reference/reactive-utilities/on now redirects to /reference/reactive-utilities/on-util instead of /reference/reactive-utilities/on.
  • /routing/migration/ now redirects to /solid-router/guides/migration instead of /routing/migration.
  • /guides/how-to-guides/routing-in-solid/solid-router now redirects to /solid-router/getting-started/installation-and-setup instead of /routing/installation-and-setup.

It also adds /routing/migration (without the trailing slash) so that old URL reaches the migration guide too.

Verification:

  • A script runs every source in LEGACY_ROUTES through handleLegacyRoutes and checks its target against src/routes. Before: 87 resolve and 3 lead to missing pages. After: all 91 resolve.
  • With pnpm dev, each of the four URLs above returns 301 and the final page returns 200.
  • pnpm check:types, pnpm check:lint on the file, and prettier --check pass.

Related issues & labels

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for solid-docs ready!

Name Link
🔨 Latest commit 98ff240
🔍 Latest deploy log https://app.netlify.com/projects/solid-docs/deploys/6ad4a5e2759345b1bde828b1
😎 Deploy Preview https://deploy-preview-1660--solid-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@LadyBluenotes
LadyBluenotes merged commit dadb1f1 into solidjs:main Oct 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Three legacy URL redirects lead to 404 pages

2 participants