text icon indicating copy to clipboard operation
text copied to clipboard

Outline Links Not Working Externally

Open dbray925 opened this issue 2 years ago • 2 comments

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:

  • OS: Windows and Fedora
  • Browser: Firefox and Chrome
  • Version: 10 and 36
  • Device: Desktop
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.

dbray925 avatar May 10 '23 14:05 dbray925