Skip to content

[ebot] Redirect old catalog URLs to resources#252

Merged
ewlarson merged 1 commit into
developfrom
feature/catalog-url-redirects
May 22, 2026
Merged

[ebot] Redirect old catalog URLs to resources#252
ewlarson merged 1 commit into
developfrom
feature/catalog-url-redirects

Conversation

@ewlarson
Copy link
Copy Markdown
Contributor

Summary

  • Add React Router server routes for legacy /catalog/:id and /catalog/:id/* URLs.
  • Permanently redirect old GeoBlacklight URLs to the new /resources/:id detail URLs while preserving query params.
  • Mirror the redirect in the legacy SPA route table for non-framework/local fallback paths.
  • Add focused loader tests for plain catalog URLs, query params, child paths, and missing IDs.

Why

Fixes #81. The old Geoportal used /catalog/... URLs, while the new RUI Geoportal uses /resources/.... This keeps old bookmarked and indexed resource links working cleanly when production traffic moves over.

Validation

  • npm test -- --run app/routes/tests/catalog.redirect.test.ts
  • npm run build
  • ./node_modules/.bin/eslint src/App.tsx
  • Local smoke tests confirmed HTTP/1.1 301 for /catalog/:id?... and /catalog/:id/raw?... with Location: /resources/:id?...

@ewlarson ewlarson changed the title [codex] Redirect old catalog URLs to resources [ebot] Redirect old catalog URLs to resources May 22, 2026
@ewlarson ewlarson marked this pull request as ready for review May 22, 2026 21:05
@ewlarson ewlarson merged commit 8b13da3 into develop May 22, 2026
12 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.

Frontend - Redirect old GBL URLs to new RUI URLs

1 participant