Skip to content

fix: decode URL-encoded characters in SSR pathname#55

Merged
rsbh merged 1 commit intomainfrom
fix/decode-url-special-chars
May 8, 2026
Merged

fix: decode URL-encoded characters in SSR pathname#55
rsbh merged 1 commit intomainfrom
fix/decode-url-special-chars

Conversation

@rsbh
Copy link
Copy Markdown
Member

@rsbh rsbh commented May 8, 2026

Summary

  • Decode URL-encoded characters (e.g. %26&) in SSR pathname before route resolution
  • Pages with special characters like & in slug previously returned 404
  • Add example test file tips-&-tricks.mdx

Test plan

  • /docs/tips-&-tricks → 200
  • /docs/tips-%26-tricks → 200
  • Normal pages unaffected
  • Root redirect still works

🤖 Generated with Claude Code

URLs with special characters like & (%26) returned 404 because
url.pathname was not decoded before route resolution.

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

vercel Bot commented May 8, 2026

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

Project Deployment Actions Updated (UTC)
chronicle Ready Ready Preview, Comment May 8, 2026 8:56am

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 8, 2026

Warning

Rate limit exceeded

@rsbh has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 48 minutes and 54 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: 59c720c0-0081-48fa-952f-32130a0b507c

📥 Commits

Reviewing files that changed from the base of the PR and between 40d7ea7 and 019f66b.

📒 Files selected for processing (2)
  • examples/basic/content/docs/tips-&-tricks.mdx
  • packages/chronicle/src/server/entry-server.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/decode-url-special-chars

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 1d999e0 into main May 8, 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