Playground should not be able to generate URLs that exceed the maximum length
Open
@LeoMcA is already working on this.
Since Apr 23, 2026.
p1
- Dominant language
- JavaScript
- Stars
- 233
- Forks
- 61
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 82
Description
Via https://github.com/mdn/content/issues/43892
URLs have a maximum length of 8k - it's possible using the playground to generate longer URLs.
We should, at least:
- add validation in the Playground directly that prevents generation of URLs exceeding 8000 encoded characters
- add a Content built-time test to as a backstop
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.