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:
2025-11-23 21:43:58 -05:00
parent 1618aa2ee8
commit e5c1762f6a
+1 -1
View File
@@ -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