Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Anchor links do not bring you to the relevent heading

Aperta
#8,724 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, markdown
Ambito
frontend

Direzione di ricerca

Inizia dal flusso di heading-anchor e caricamento dei documenti dell'editor di testo, quindi riproduci il problema con un'intestazione Markdown e un link hashtag copiato. Traccia dove viene elaborato l'URL quando il documento viene aperto; il lavoro è completato quando l'hash rimane nell'URL e il browser naviga all'intestazione corrispondente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
JavaScript
Stelle
665
Fork
133
Merge medio
1g 17h
PR unite (30g)
172

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/text

Tutte le issue di nextcloud/text

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.