Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Anchor links do not bring you to the relevent heading

Đang mở
#8,724 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, markdown
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu từ luồng heading-anchor và tải tài liệu của trình soạn thảo văn bản, sau đó tái hiện vấn đề bằng một tiêu đề Markdown và một liên kết hashtag được sao chép. Theo dõi nơi URL được xử lý khi tài liệu mở; hoàn tất khi hash vẫn còn trong URL và trình duyệt điều hướng đến tiêu đề tương ứng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug feature: links

Describe the bug

In the text editor, when you hover over a heading (H1, H2, H3, etc), it offers a little hashtag icon to the left of it with a link to that anchor point in the document. For example (the #h-2026-06-09 bit in the URL below):

https://mycloud.example.com/apps/files/files/162509?dir=/todo/2026&editing=false&openfile=true#h-2026-06-09

However, opening this link does not take you to that heading. It appears that the anchor is dropped from the URL during the process of loading the document.

To Reproduce
Steps to reproduce the behavior:

  1. Create a text file (markdown) with a heading.
  2. Copy the link to the heading with the appropriate hashtag appended to the URL.
  3. Visit that link in another browser tab.
  4. Observe that you are not taken to the heading, and the hashtag is dropped from the URL.

Expected behavior

I would expect that visiting that link would take me to the appropriate position in the document.

Server details:

  • Nextcloud version: 32
  • PHP Version: (using official Docker image)
  • Database: PostgreSQL 14

Client details:

  • OS: Debian
  • Browser: Firefox
  • Browser version: 128.4.0esr (64-bit)
  • Device: desktop
Ngôn ngữ chính
JavaScript
Star
665
Fork
133
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
172

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/text

Tất cả issue của nextcloud/text

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.