Skip to content

linking local files without ?fileID does not work #2774

@mstyp

Description

@mstyp

Describe the bug

Linking to local files without the file ID does not work. EG, if I where to use gedit to edit the markdown file and reupload it to nextcloud, this:

[hurp](durp.md?fileId=123)

would work, but this:

[hurp](durp.md)

does not work. this is a problem since I do a lot of local editing of files with markor when I don't have a connection to the server.

To Reproduce
Steps to reproduce the behavior:

  1. highlight text in the nextcloud editer
  2. create a link to local file in the same directory
  3. highlight text again
  4. click "edit link",
  5. remove ?fileId=123 part of url
  6. click link again, a new tab opens but its to "https://durp.md/'.
  7. download file, edit in gedit
  8. see that raw text is wrong. fix so its [hurp](durp.md)
  9. reupload
  10. go to nextcloud. try to click link. opens new tab to blank page.

Expected behavior
click link, new tab opens to correct file.

Client details:

  • OS: debian 11
  • Browser: firefox esr
  • Nextcloud version: 23.0.4 - 23.0.4.1
  • Device: desktop
Server details

Text app version: (3.4.1

Operating system:

debian 11

Web server:
Apache/2.4.53 (Debian) (fpm-fcgi)
Database:
mysql 10.5.15
PHP version:
8
Nextcloud version: (see Nextcloud admin page)
23.0.4 - 23.0.4.1

Logs

Nextcloud log (data/nextcloud.log)

to diffuclt to redact

Browser log

dont know how to find

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🧭 Planning evaluation (don't pick)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions