Skip to content

fix(links): register global collectives link handler and pass it to Text#2501

Open
mejo- wants to merge 2 commits into
mainfrom
fix/pass_link_handler
Open

fix(links): register global collectives link handler and pass it to Text#2501
mejo- wants to merge 2 commits into
mainfrom
fix/pass_link_handler

Conversation

@mejo-
Copy link
Copy Markdown
Member

@mejo- mejo- commented May 12, 2026

📝 Summary

Ensures that link navigation always uses the collectives link handler, regardless of whether clicking the preview, the "Open link" button in the link bubble, or Ctrl-clicking the link directly.

Requires nextcloud/text#8571

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

🤖 AI (if applicable)

  • The content of this PR was partly generated using AI tools
  • The AI-generated content was reviewed, comprehended and tested by a human

@mejo- mejo- self-assigned this May 12, 2026
@mejo- mejo- added bug Something isn't working feature: link handling labels May 12, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team May 12, 2026
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team May 12, 2026
Ensures that link navigation always uses the collectives link handler,
regardless of whether clicking the preview, the "Open link" button in
the link bubble, or Ctrl-clicking the link directly.

Requires nextcloud/text#8571

Fixes: #2378

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- force-pushed the fix/pass_link_handler branch from cff7b30 to e54439c Compare May 12, 2026 12:59
When `collectiveId` is accessed before `currentCollective` is loaded,
this resulted in a type error.

This was observed when running Playwright tests with UI from time to
time.

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- force-pushed the fix/pass_link_handler branch from e54439c to 777440a Compare May 12, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

wrong link (if text only) in publicly sharing collective (between collectives pages)

1 participant