opencode icon indicating copy to clipboard operation
opencode copied to clipboard

File references containing % characters cause 400 Bad Request URI Error

Open ChaseRensberger opened this issue 1 year ago • 1 comments

I noticed this error when working on an application that uses tanstack router where you make slug routes with the % symbol.

Pretty sure the issue occurs in the file reference processing pipeline since when decodeURIComponent(url.pathname) is called, % is considered an escape character and needs to be followed by some hex characters.

ChaseRensberger avatar Sep 08 '25 22:09 ChaseRensberger

This issue might be a duplicate of existing issues. Please check:

  • #787: Both issues describe the same problem with percent-encoded characters in file paths causing 400 Bad Request URI errors due to improper handling of URL decoding with decodeURIComponent

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Sep 08 '25 22:09 github-actions[bot]