Skip to content

fix: use req.originalUrl for correct path extraction in NestJS#178

Merged
HugoRCD merged 2 commits intoHugoRCD:mainfrom
ruisaraiva19:fix/nestjs-path
Mar 14, 2026
Merged

fix: use req.originalUrl for correct path extraction in NestJS#178
HugoRCD merged 2 commits intoHugoRCD:mainfrom
ruisaraiva19:fix/nestjs-path

Conversation

@ruisaraiva19
Copy link
Copy Markdown
Contributor

🔗 Linked issue

📚 Description

req.url can be changed by other middleware (e.g. global prefix, proxy). Using Express’s req.originalUrl keeps the path as it was when the request hit the app, so logs show the real route.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 14, 2026

@ruisaraiva19 is attempting to deploy a commit to the HRCD Projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the bug Something isn't working label Mar 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 14, 2026

Thank you for following the naming conventions! 🙏

@HugoRCD HugoRCD merged commit 2b26ed2 into HugoRCD:main Mar 14, 2026
3 of 4 checks passed
@ruisaraiva19 ruisaraiva19 deleted the fix/nestjs-path branch March 14, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants