Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%25 shows as % in search bar when searched for, so does any ASCII character #8406

Open
anonymousratwastaken opened this issue Jun 3, 2024 · 1 comment

Comments

@anonymousratwastaken
Copy link

Expected Behavior

Searching, e.g. %2C should search for %2C, not the "," character represented hexadecimally through ASCII.
Searching Google for %25 searches internally for %2525 because %25 is % represented hexadecimally through ASCII.

Actual Behavior

Searching Scratch for %25 shows %2525 in the URL (good) but does NOT show any projects including %25 in the name (e.g. https://scratch.mit.edu/projects/1031011849/), and shows a % instead.
My guess is maybe a broken encodeURIComponent() /decodeURIComponent() function or something similar?
However, searching for %2525 does search for %25 on the client side. So maybe a temporary fix would be to add an extra "%25" to the internally used search paramater?

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to 'https://scratch.mit.edu/'
  2. Click on the Search bar
  3. Search for %25
  4. See % instead

System Details

Windows 11, Firefox packaged as MSIX 126.0.1.

Screenshots
Before
image
After
image

@PaperMarioFan-2022
Copy link

I've also experienced that. It's weird, and I am unsure of where it's coming from.

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

No branches or pull requests

2 participants