Skip to content

feat: redirect index pages to first child when no index exists#59

Merged
rsbh merged 1 commit into
mainfrom
feat/landing-redirect
May 13, 2026
Merged

feat: redirect index pages to first child when no index exists#59
rsbh merged 1 commit into
mainfrom
feat/landing-redirect

Conversation

@rsbh
Copy link
Copy Markdown
Member

@rsbh rsbh commented May 13, 2026

Summary

  • /apis redirects to first API endpoint instead of showing generic landing
  • Content root (e.g., /docs) redirects to first nested page when index.md is missing
  • Regular 404s still show NotFound page — only content roots redirect

Test plan

  • Visit /apis — redirects to first API endpoint
  • Visit /docs without index.md — redirects to first docs page
  • Visit /docs/nonexistent — shows 404
  • Visit /apis/invalid/path — shows empty/null (no match)
  • Normal page navigation still works

🤖 Generated with Claude Code

- /apis redirects to first API endpoint
- /docs (or any content root) redirects to first nested page when
  index.md is missing
- Regular 404s still show NotFound page

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chronicle Ready Ready Preview, Comment May 13, 2026 4:50am

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 13, 2026

Warning

Rate limit exceeded

@rsbh has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 20 minutes and 37 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3e52498f-28b6-4871-acb4-761a9136f77a

📥 Commits

Reviewing files that changed from the base of the PR and between 4b4857e and baa34fc.

📒 Files selected for processing (3)
  • packages/chronicle/src/lib/api-routes.ts
  • packages/chronicle/src/pages/ApiPage.tsx
  • packages/chronicle/src/pages/DocsPage.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/landing-redirect

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@rsbh rsbh merged commit ad10d6c into main May 13, 2026
4 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.

2 participants