Skip to content

Comments

Wrap refs to anchor elemnts with data-target-module attrbute#3085

Open
YishaiGlasner wants to merge 3 commits intomasterfrom
bug/sc-40657/nechama-sheets-links-attempt-to-open-books-in
Open

Wrap refs to anchor elemnts with data-target-module attrbute#3085
YishaiGlasner wants to merge 3 commits intomasterfrom
bug/sc-40657/nechama-sheets-links-attempt-to-open-books-in

Conversation

@YishaiGlasner
Copy link
Contributor

Description

That will solve the bug with Nechama's links open on voices

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates server-side ref auto-linking so generated <a class="refLink"> tags include a data-target-module attribute, allowing the frontend router to open links in the correct module (Library vs Voices) and addressing incorrect navigation for links shown on Voices pages.

Changes:

  • Add data-target-module to auto-wrapped ref links.
  • Determine module target based on whether the ref points to a Sheet (voices) vs standard text (library).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@stevekaplan123 stevekaplan123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should avoid using magic strings if we can. Don't we have constants with the values "voices"/"library"?

@mergify
Copy link

mergify bot commented Feb 11, 2026

🧪 CI Insights

Here's what we observed from your CI run for 2090ca8.

🟢 All jobs passed!

But CI Insights is watching 👀

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.

3 participants