mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Fix verse tooltip URL parsing
Fixed tooltip event handler to use pathname instead of full href. Issue: - target.href returns full URL: "http://localhost:8000/book/John/..." - parseVerseUrl regex expects pathname: "/book/John/..." - This caused parseVerseUrl to return null, breaking tooltips Solution: - Changed target.href to target.pathname in event handler - Now passes "/book/John/chapter/3/verse/16" to parseVerseUrl - Regex patterns match correctly and tooltips work 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1430,7 +1430,7 @@
|
||||
|
||||
if (!target || !target.href) return;
|
||||
|
||||
var verseInfo = parseVerseUrl(target.href);
|
||||
var verseInfo = parseVerseUrl(target.pathname);
|
||||
if (!verseInfo) return;
|
||||
|
||||
// Show loading state
|
||||
|
||||
Reference in New Issue
Block a user