fix(html): guard TOC hash clicks against SPA router hijack - #22
Merged
Conversation
- Add click guard script to HTML TOC template (docs/html/mcp-2026-07-28.html) Prevents router from intercepting anchor #hash navigation, which caused rehydrate TypeError crash on run-ai.kr and similar SPA deployments - Validate 17 TOC anchors with Playwright to confirm click safety - New html-toc skill (.claude/skills/html-toc/SKILL.md): Document procedure for creating/editing HTML TOC, applying SPA guard, and verifying all links with automated browser tests
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇
HTML 목차의 앵커 해시 클릭이 SPA 라우터에 가로채져 발생하던 rehydrate TypeError 크래시를 방지했습니다.
변경 사항
docs/html/mcp-2026-07-28.html— 클릭 가드 스크립트 삽입.claude/skills/html-toc/SKILL.md— 신규 스킬검증 결과
✓ 17/17 앵커 하이재킹 시뮬레이션 통과
✓ run-ai.kr 및 유사 SPA 환경에서 안전성 확인
✓ 일반 정적 호스팅에는 영향 없음