nextcloud / text

📑 Collaborative document editing using Markdown
GNU Affero General Public License v3.0
556 stars 92 forks source link

Outline Links Not Working Externally #4166

Open dbray925 opened 1 year ago

dbray925 commented 1 year ago

Describe the bug When right-clicking and copying the Outline link, and trying to use that (either in another note, or email, chat, etc.), the link opens the file, but does not go to the specific Outline heading. Noted the link does include the "#heading" within the URL, but that "#heading" is dropped when the page opens.

To Reproduce Steps to reproduce the behavior:

  1. Create a New text file (as Note.md)
  2. Insert a heading: Ctrl+Shift+5
  3. Type enough text to make the page scroll of screen
  4. Insert another heading heading: Ctrl+Shift+5
  5. Enable the Outline view (Click Show Outline)
  6. Right-Click on the Outline link on the bottom, and copy
  7. Open a new tab (browser window) paste the link

Expected behavior Pasted link should open the text file, and scroll to the Outline link header. Instead, the file just opens to default view.

Client details:

Server details **Text app version:** 3.6.0 **Operating system:** CentOS Stream 8 **Web server:** Apache **Database:** MariaDB Galera Cluster **PHP version:** 8.1 **Nextcloud version:** 25.04
Logs #### Nextcloud log (data/nextcloud.log) ``` Nothing relevant is logged ``` #### Browser log ``` Nothing relevant is logged. However, it should be noted that the #heading is dropped from the URL once the page loads. ```
max-nextcloud commented 1 year ago

I think this is caused by the way files and the viewer open the file. I have high hopes here for the files rewrite in Vue that is currently under way.