Github report link does not work when description includes % character
- Dominant language
- No language data
- Stars
- 42
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
## Reproduction
1. Open a paper in the HTML viewer
2. Select some text
3. Click "Report issue for selection"
4. In the popup modal:
1. Add something to the title field
2. Add the following to the description field: `%`
3. Click "Submit in Github"
5. You get a 400 error. Screenshot in Chrome:
## Root cause
The `%` character is not URL-encoded. It should be URL-encoded to `%25`. The breaks URL decoding on the Github side.
Contributor guide
Research direction
The affected entry point is the HTML viewer’s “Report issue for selection” flow; trace how the title and description are assembled for the “Submit in Github” link. Reproduce with `%`, then verify the generated GitHub URL encodes it as `%25` and submission no longer returns 400.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100