Skip to content

fix: Convert AsciiDoc cross-reference links to router navigation#80

Merged
raifdmueller merged 1 commit intoLLM-Coding:mainfrom
raifdmueller:main
Feb 13, 2026
Merged

fix: Convert AsciiDoc cross-reference links to router navigation#80
raifdmueller merged 1 commit intoLLM-Coding:mainfrom
raifdmueller:main

Conversation

@raifdmueller
Copy link
Contributor

Summary

Fixes internal AsciiDoc cross-reference links to work with hash-based routing.

AsciiDoc cross-references like <<spc,SPC>> were generating simple hash links (#spc) which don't work with our hash-based routing system (#/anchor/spc). This PR adds event listeners to intercept clicks on these internal links and convert them to proper router navigation.

Changes

  • Modified website/src/components/anchor-modal.js to intercept clicks on internal cross-reference links
  • Links like <<anchor-id,text>> now navigate to #/anchor/anchor-id instead of #anchor-id

Testing

Tested with Nelson Rules anchor which contains a cross-reference to SPC. Clicking the link now correctly navigates to the SPC anchor modal.

Fixes: https://github.com/LLM-Coding/Semantic-Anchors/issues/XX

🤖 Generated with Claude Code

AsciiDoc cross-references (<<anchor-id,text>>) were generating simple
hash links (#anchor-id) which don't work with our hash-based routing
(#/anchor/anchor-id). Now intercept clicks on these internal links
and convert them to proper router navigation.

This fixes the user-reported issue: "die links innerhalb von ankern
funktionieren nicht" (links within anchors don't work).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@raifdmueller raifdmueller merged commit b326969 into LLM-Coding:main Feb 13, 2026
1 of 2 checks passed
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