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:
- Create a text file (markdown) with a heading.
- Copy the link to the heading with the appropriate hashtag appended to the URL.
- Visit that link in another browser tab.
- 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
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-09bit 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:
Expected behavior
I would expect that visiting that link would take me to the appropriate position in the document.
Server details:
Client details: