No custom 404 page: unknown URLs show GitHub's generic page with no way back
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- css, html, javascript
- Domain
- frontend
Research direction
The issue asks for a new 404.html at the repository root, which GitHub Pages serves for unknown paths. Read index.html and css/style.css to reuse the site's look, and use absolute paths such as /Static_Chess/css/style.css and /Static_Chess/ so links work at any depth. Done when an unknown URL under /Static_Chess/ shows a styled page with a working link back to the game; confirm the response is still 404 and run npm test.
Written by the indexing model from the issue text.
Description
Summary
The site has no 404.html, so a mistyped or outdated URL under /Static_Chess/ shows GitHub's generic "File not found" page, which has no link back to the game.
Where
404.htmldoes not exist in the repository root- Live example:
https://tmhsdigital.github.io/Static_Chess/nope-404
Details
The Pages API reports custom_404: false. The page served for an unknown path is titled "Page not found · GitHub Pages" and contains no link to any URL on this site.
Impact
A visitor who follows a broken link has to edit the address by hand to reach the game.
Steps to reproduce
- Open
https://tmhsdigital.github.io/Static_Chess/nope-404.
Suggested fix
Add a small 404.html at the repository root that uses the site's stylesheet and links to the game. GitHub Pages serves it for unknown paths at any depth, so use absolute paths in it (/Static_Chess/css/style.css, /Static_Chess/), because relative ones break for URLs such as /Static_Chess/a/b.
Acceptance criteria
- An unknown URL under
/Static_Chess/shows a page in the site's style with a working link to the game - The response status is still 404
Getting started
- Relevant files:
index.html,css/style.css - How to run tests:
npm test,npm run format
Filed by repo-audit/pages-audit at 0144de7. Severity: low. Effort: S. audit-key: enhancement|404.html|custom-404
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 2
- Avg merge
- 4h 8m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from TMHSDigital/Static_Chess
-
documentation good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TMHSDigital/Static_Chess#79 ·
-
enhancement good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
TMHSDigital/Static_Chess#76 ·
-
enhancement good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TMHSDigital/Static_Chess#75 ·
-
enhancement good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TMHSDigital/Static_Chess#72 ·
-
documentation good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TMHSDigital/Static_Chess#49 ·
All issues in TMHSDigital/Static_Chess
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
discovery:other factory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
vercel/ai#25068 · 4 comments ·
Maintainers usually reply within 1 day
-
needs-triage typo
Difficulty 1/5 Under an hour Newbie friendliness 88/100
llm-d-incubation/llm-d-scaling-manager#122 ·
Maintainers usually reply within 1 day
-
create-strapi-app doesn't await writing license.txt, so a failed write skips its error handlingOpenflag: invalid template issue: bug severity: low source: cli status: pending reproduction version: 5
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
strapi/strapi#28637 · 1 comment ·
Maintainers usually reply within 2 days