text icon indicating copy to clipboard operation
text copied to clipboard

linking local files without ?fileID does not work

Open mstyp opened this issue 1 year ago • 6 comments

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

mstyp avatar Aug 02 '22 15:08 mstyp

Related to:

  • #2378
  • #2339
  • #1900

vinicius73 avatar Aug 17 '22 18:08 vinicius73

Confirmed.

marcelklehr avatar Nov 24 '22 12:11 marcelklehr

I'm happy to see this marked as high priority.

I'd like to add a user story of just how vital this is.

I've been championing a switch to Nextcloud at our studio. I thought I had tested markdown capabilities by checking that a document rendered properly, including relative image embeds. Since this worked perfectly, it did not occur to me that normal links could somehow not work.

Right now we're trying to decide whether to give up our migration or go through all our links to insert file ids and ruin the workflow of those that use external editors.

I believe this feature is greatly needed, and hope the team can find time to address it quickly.

marningmol avatar Mar 02 '23 09:03 marningmol

Dear @marningmol and @mstyp did you consider to try out the Nextcloud Collectives app? There, links to pages without fileId parameter are supposed to work.

mejo- avatar May 11 '23 10:05 mejo-

No, the collectives app does not properly open links without without fileId. Have you tried it yourself? Select some text in collectives, click the "insert link" button, select "link to local file or foulder", pick the file you want to link to (say, test.md in the same directory). Click it and see that it works

But then go to edit the link (select text, then look up to "update link") and then remove the ?fileId=12345. When you try to click the link then, it thinks you are trying to go to https://test.md lol.

Even if it did work, I'm not going to stick all my documents into collectives. Its just not the right tool for that.

mstyp avatar May 15 '23 18:05 mstyp

Related: #2136

joshtrichards avatar Jan 18 '24 20:01 joshtrichards