Skip to content

Add acvn:// inline link support in content area#19

Merged
narayan24 merged 1 commit into
masterfrom
feature/inline-content-links
May 14, 2026
Merged

Add acvn:// inline link support in content area#19
narayan24 merged 1 commit into
masterfrom
feature/inline-content-links

Conversation

@narayan24
Copy link
Copy Markdown
Owner

Summary

  • Adds Navigating="mainContent_Navigating" to the main WebBrowser
  • Handler intercepts any URL with scheme acvn://, cancels browser navigation, and calls ExecuteCommand with the parsed room + action
  • Format: acvn://room_id/action — action is optional (defaults to start)
  • Enables .acvn templates to embed clickable <a href="acvn://..."> links directly in content HTML, not only as action buttons

Test plan

  • Open clothing store → click a → Buy link in the text → purchase scene loads
  • Confirm normal [[...]] navigation buttons still work
  • Confirm external links (if any) are not affected

🤖 Generated with Claude Code

Adds a Navigating handler on the main WebBrowser that intercepts
acvn://room/action URLs before they reach the browser engine,
cancels navigation, and routes them through ExecuteCommand instead.
This allows .acvn templates to embed <a href="acvn://..."> links
directly in the content area HTML.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@narayan24 narayan24 merged commit 1824fff into master May 14, 2026
@narayan24 narayan24 deleted the feature/inline-content-links branch May 14, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant