Skip to content

[stable32] fix(links): scroll to anchor links directly#8868

Merged
mejo- merged 1 commit into
stable32from
backport/8857/stable32
Jul 13, 2026
Merged

[stable32] fix(links): scroll to anchor links directly#8868
mejo- merged 1 commit into
stable32from
backport/8857/stable32

Conversation

@mejo-

@mejo- mejo- commented Jul 13, 2026

Copy link
Copy Markdown
Member

Setting location.href doesn't work reliably as the window may hold several editors with conflicting IDs (e.g. reader and editor in Collectives). Instead, scroll to the heading in view.dom.

Fixes: #8804

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits

Setting location.href doesn't work reliably as the window may hold
several editors with conflicting IDs (e.g. reader and editor in
Collectives). Instead, scroll to the heading in `view.dom`.

Fixes: #8804

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- self-assigned this Jul 13, 2026
@mejo- mejo- requested a review from max-nextcloud as a code owner July 13, 2026 10:48
@mejo- mejo- added bug Something isn't working 3. to review feature: links labels Jul 13, 2026
@mejo- mejo- merged commit 13b8121 into stable32 Jul 13, 2026
61 checks passed
@mejo- mejo- deleted the backport/8857/stable32 branch July 13, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant